-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
40 lines (40 loc) · 1.03 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
module.exports = {
assetsDir: 'assets',
productionSourceMap: false,
lintOnSave: false,
devServer: {
overlay: {
warnings: true,
errors: true
}
},
pwa: {
name: 'My vuenull app',
themeColor: '#4281ba',
msTileColor: '#000',
appleMobileWebAppCapable: 'yes',
appleMobileWebAppStatusBarStyle: 'black',
iconPaths: {
favicon32: 'assets/img/favicons/favicon-32x32.png',
favicon16: 'assets/img/favicons/favicon-16x16.png',
appleTouchIcon: 'assets/img/favicons/apple-touch-icon-152x152.png',
maskIcon: 'assets/img/favicons/safari-pinned-tab.svg',
msTileImage: 'assets/img/favicons/msapplication-icon-144x144.png'
}
},
chainWebpack: config => {
config.module
.rule('images')
.use('url-loader')
.loader('url-loader')
.tap(options => Object.assign(options, {
limit: -1,
fallback: {
loader: 'file-loader',
options: {
name: 'assets/img/[folder]/[name].[hash:8].[ext]'
}
}
}))
}
}