-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvue.config.js
More file actions
43 lines (39 loc) · 882 Bytes
/
vue.config.js
File metadata and controls
43 lines (39 loc) · 882 Bytes
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
const path = require("path");
const webpack = require("webpack");
function resolve(dir) {
return path.join(__dirname, dir);
}
module.exports = {
productionSourceMap: false,
configureWebpack: {
plugins: [
// Ignore all locale files of moment.js
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
]
},
chainWebpack: config => {
config.resolve.alias.set("@$", resolve("src")).set("@views", resolve("src/views"));
},
css: {
loaderOptions: {
less: {
modifyVars: {},
javascriptEnabled: true
}
}
},
// devServer: {
// proxy: {
// "/api": {
// target: process.env.VUE_APP_BASE_API_HOST,
// ws: false,
// changeOrigin: true,
// pathRewrite: {
// "^/api/": "/api/",
// }
// }
// }
// },
assetsDir: "static",
runtimeCompiler: true
};