-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
29 lines (28 loc) · 867 Bytes
/
vue.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
const path = require("path");
process.env.VUE_APP_VERSION = require("./package.json").version;
module.exports = {
// publicPath: "/calculacarrinho/",
// pluginOptions: {
// "style-resources-loader": {
// preProcessor: "scss",
// patterns: [path.resolve(__dirname, "src/scss/base.scss")]
// }
// },
configureWebpack: {
resolve: {
alias: {
"@assets": path.resolve(__dirname, "src/assets"),
"@scss": path.resolve(__dirname, "src/scss"),
"@js": path.resolve(__dirname, "src/js"),
"@components": path.resolve(__dirname, "src/components"),
"@views": path.resolve(__dirname, "src/views")
}
}
},
chainWebpack: config => {
const svgRule = config.module.rule("svg");
svgRule.uses.clear();
svgRule.use("vue-svg-loader").loader("vue-svg-loader");
},
lintOnSave: true
};