-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
39 lines (38 loc) · 1.21 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
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
module.exports = {
publicPath: '/shuhelper/',
pwa: {
name: "SHUHelper",
workboxPluginMode: 'InjectManifest',
appleMobileWebAppCapable: 'yes',
appleMobileWebAppStatusBarStyle: 'black',
workboxOptions: {
swSrc: 'src/service-worker.js',
globDirectory: 'dist/',
globPatterns: [
'**/*.{html,json,js,css,ttf,woff,woff2,png}'
],
importWorkboxFrom: 'local',
}
},
transpileDependencies: [
"vuetify",
'vuex-module-decorators'
],
configureWebpack: {
plugins: [
new BundleAnalyzerPlugin({
analyzerMode: process.env.npm_config_report === 'true' ? 'server' : 'disabled',
analyzerHost: '127.0.0.1',
analyzerPort: 8888,
reportFilename: 'report.html',
defaultSizes: 'parsed',
openAnalyzer: false,
generateStatsFile: false,
statsFilename: 'stats.json',
statsOptions: null,
logLevel: 'info'
})
]
},
};