-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
65 lines (60 loc) · 1.7 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
module.exports = {
publicPath: process.env.NODE_ENV === 'production'
? '/app/'
: '/',
chainWebpack: (config) => {
const svgRule = config.module.rule('svg');
svgRule.uses.clear();
svgRule
.oneOf('inline')
.resourceQuery(/inline/)
.use('babel-loader')
.loader('babel-loader')
.end()
.use('vue-svg-loader')
.loader('vue-svg-loader')
.end()
.end()
.oneOf('external')
.use('file-loader')
.loader('file-loader')
.options({
name: 'assets/[name].[hash:8].[ext]',
});
},
pwa: {
name: '\u0417\u0430\u043c\u0435\u0440\u0449\u0438\u043a. \u041f\u043b\u0430\u0441\u0442\u0438\u043a\u0430 \u041e\u043a\u043e\u043d',
themeColor: '#33C5F3',
msTileColor: '#ffffff',
appleMobileWebAppCapable: 'yes',
appleMobileWebAppStatusBarStyle: 'black',
// настройки манифеста
manifestOptions: {
icons: [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
}
],
orientation: 'portrait',
display: 'fullscreen',
background_color: '#ffffff',
start_url: '.'
},
iconPaths: {
favicon32: 'favicon-32x32.png',
favicon16: 'favicon-16x16.png',
maskIcon: 'safari-pinned-tab.svg',
msTileImage: 'mstile-150x150.png',
appleTouchIcon: 'apple-touch-icon.png'
}
// // настройка workbox-плагина
// workboxPluginMode: 'InjectManifest',
// workboxOptions: {
// // swSrc необходимо в режиме InjectManifest
// swSrc: 'dev/sw.js',
// // ...другие настройки Workbox...
// }
}
};