forked from olivia-ai/olivia-ai.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvue.config.js
More file actions
35 lines (34 loc) · 858 Bytes
/
vue.config.js
File metadata and controls
35 lines (34 loc) · 858 Bytes
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
const { BASE_URL = "/" } = process.env;
module.exports = {
publicPath: BASE_URL,
chainWebpack: config => {
config.module.rule('loaders')
.test(/\.(png|svg|gif|md)$/)
.use('file')
.loader('file-loader')
.end()
.test(/\.(md)$/)
.use('file')
.loader('raw-loader')
.end()
},
pwa: {
name: "Olivia",
appleMobileWebAppCapable: 'yes',
themeColor: '#ff3aaf',
msTileColor: '#fff',
iconPaths: {
favicon32: "img/icons/favicon-32x32.png",
favicon16: "img/icons/favicon-16x16.png",
appleTouchIcon: "img/icons/apple-touch-icon-152x152.png",
msTileImage: "img/icons/msapplication-icon-144x144.png"
},
workboxPluginMode: 'InjectManifest',
workboxOptions: {
swSrc: 'src/service-worker.js',
}
},
pluginOptions: {
cordovaPath: "cordova"
}
}