-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvue.config.js
47 lines (46 loc) · 1.11 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
/* eslint-disable camelcase */
module.exports = {
chainWebpack: (config) => {
config.plugin('html').tap((args) => {
const newArgs = [...args];
newArgs[0].title = 'fdxk.info';
return newArgs;
});
},
pwa: {
name: 'fdxk.info',
themeColor: '#60BDCA',
msTileColor: '#60BDCA',
appleMobileWebAppCapable: 'yes',
appleMobileWebAppStatusBarStyle: 'black',
workboxPluginMode: 'InjectManifest',
workboxOptions: {
swSrc: 'src/service-worker.js',
},
// configure the workbox plugin
// workboxPluginMode: 'InjectManifest',
// workboxOptions: {
// // swSrc is required in InjectManifest mode.
// // swSrc: 'dev/sw.js',
// // ...other Workbox options...
// },
manifestOptions: {
short_name: 'fdxk',
background_color: '#E3F1F3',
},
},
css: {
loaderOptions: {
less: {
lessOptions: {
modifyVars: {
'primary-color': '#60BDCA',
'link-color': '#60BDCA',
'error-color': '#EF755A',
},
javascriptEnabled: true,
},
},
},
},
};