-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
37 lines (36 loc) · 1 KB
/
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
30
31
32
33
34
35
36
37
const Webpack = require('webpack')
module.exports = {
css: {
extract: {
filename: "[name].css"
}
},
productionSourceMap: false,
filenameHashing: false,
configureWebpack: {
plugins: [
new Webpack.optimize.LimitChunkCountPlugin({
maxChunks: 1
})
],
output: {
filename: "[name].js",
// // see: https://github.com/vuejs/vue-cli/issues/2443#issuecomment-419158280
// filename: () => (process.env.VUE_CLI_MODERN_MODE && !process.env.VUE_CLI_MODERN_BUILD) ? 'yawik-job-list-traditional.js' : 'yawik-job-list.js'
}
},
pages: {
"yawik-job-list": {
entry: "src/main.js",
filename: "index.html"
}
},
chainWebpack:
config => {
config.optimization.delete('splitChunks')
config
.delete("html")
.delete("prefetch")
.delete("preload");
}
}