-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvue.config.js
More file actions
executable file
·48 lines (47 loc) · 1.03 KB
/
Copy pathvue.config.js
File metadata and controls
executable file
·48 lines (47 loc) · 1.03 KB
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
44
45
46
47
48
const path = require("path");
module.exports = {
configureWebpack: config => {
if (process.env.NODE_ENV === "development") {
return {
watch: true,
watchOptions: {
aggregateTimeout: 200,
poll: true,
ignored: /node_modules/
},
stats: {
colors: true,
chunks: false
},
devServer: {
contentBase: path.resolve("./build"),
compress: false,
port: 9000,
hot: true,
clientLogLevel: "debug",
host: "localhost"
},
optimization: {
removeAvailableModules: false,
removeEmptyChunks: false,
splitChunks: false
},
externals: {
moment: "Moment"
}
};
} else {
return {
devServer: {
contentBase: path.resolve("./dist"),
compress: true,
port: 8080,
clientLogLevel: "silent"
},
externals: {
moment: "Moment"
}
};
}
}
};