-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
executable file
·49 lines (46 loc) · 1.05 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
38
39
40
41
42
43
44
45
46
47
48
49
const CopyPlugin = require('copy-webpack-plugin')
module.exports = {
pages: {
index: {
entry: 'src/index.js',
template: 'public/index.html',
filename: 'index.html'
}
},
devServer: {
clientLogLevel: 'warning',
hot: true,
contentBase: 'dist',
compress: true,
open: true,
overlay: { warnings: false, errors: true },
publicPath: '/',
quiet: true,
watchOptions: {
poll: false,
ignored: /node_modules/
}
},
chainWebpack: config => {
config.plugins.delete('prefetch-index'),
config.module
.rule('vue')
.use('vue-loader')
.tap(args => {
args.compilerOptions.whitespace = 'preserve'
})
},
productionSourceMap: false,
assetsDir: './assets/',
configureWebpack: {
plugins: [
new CopyPlugin({
patterns: [
{ from: 'src/assets/img', to: 'assets/img' },
{ from: 'src/assets/logos', to: 'assets/logos' },
{ from: 'src/assets/fonts', to: 'assets/fonts' }
],
}),
]
}
}