-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathvue.config.js
More file actions
29 lines (26 loc) · 754 Bytes
/
vue.config.js
File metadata and controls
29 lines (26 loc) · 754 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
// const CopyWebpackPlugin = require('copy-webpack-plugin')
module.exports = {
publicPath: process.env.NODE_ENV === 'production'
? '/imgalign/'
: '/',
pwa: {
name: 'Image Needle',
themeColor: '#000000',
msTileColor: '#000000',
appleMobileWebAppCapable: 'yes',
appleMobileWebAppStatusBarStyle: 'black',
// configure the workbox plugin
// workboxPluginMode: 'GenerateSW',
// workboxOptions: {
// }
workboxPluginMode: 'InjectManifest',
workboxOptions: {
swSrc: 'src/workbox-sw.js',
swDest: 'workbox-sw.js'
// modifyUrlPrefix: {
// // Remove a '/dist' prefix from the URLs:
// '/': process.env.NODE_ENV === 'production' ? '/imgalign/' : '/'
// }
}
}
}