-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
50 lines (49 loc) · 1.32 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
// vue.config.js
const CompressionWebpackPlugin = require('compression-webpack-plugin')
module.exports = {
pages: {
index: {
entry: './src/pages/index/index.js',
template: './public/index.html',
filename: 'index.html',
title: 'Archivio Digitale | ITIS Enrico Fermi',
chunks: ['chunk-vendors', 'chunk-common', 'index']
},
home: {
entry: './src/pages/home/home.js',
template: './public/index.html',
filename: 'home/index.html',
title: 'Archivio Digitale | ITIS Enrico Fermi',
chunks: ['chunk-vendors', 'chunk-common', 'home']
}
},
chainWebpack (config) {
// config
// .plugin('html')
// .tap(args => {
// console.log(args)
// args[0].title = 'Archivio Digitale | ITIS Enrico Fermi'
// return args
// })
// config.plugins.delete('prefetch');
config.plugin('compression').use(CompressionWebpackPlugin)
},
css: {
loaderOptions: {
sass: {
prependData: '@import "~@/scss/main.scss";'
}
}
},
pwa: {
name: 'Archivio Digitale',
themeColor: '#282828',
msTileColor: '#13AA52',
appleMobileWebAppCapable: 'yes',
appleMobileWebAppStatusBarStyle: 'black',
workboxPluginMode: 'InjectManifest',
workboxOptions: {
swSrc: './src/service-worker.js'
}
}
}