-
Notifications
You must be signed in to change notification settings - Fork 1
/
vue.config.js
45 lines (43 loc) · 987 Bytes
/
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
const CompressionPlugin = require('compression-webpack-plugin');
module.exports = {
publicPath: process.env.NODE_ENV === 'production'
? '/covid19/'
: '/',
outputDir: 'dist/covid19/',
pwa: {
name: 'COVID—19',
themeColor: '#114B5F',
msTileColor: '#114B5F',
appleMobileWebAppCapable: 'yes',
manifestOptions: {
name: 'COVID—19',
short_name: 'COVID—19',
start_url: '',
orientation: 'portrait',
display: 'fullscreen',
background_color: '#114B5F',
theme_color: '#114B5F'
}
},
lintOnSave: process.env.NODE_ENV !== 'production',
productionSourceMap: process.env.NODE_ENV === 'development',
parallel: true,
css: {
sourceMap: true
},
transpileDependencies: ['vuetify'],
configureWebpack: {
plugins: []
},
pluginOptions: {
i18n: {
locale: 'el',
fallbackLocale: 'en',
enableInSFC: true
}
},
chainWebpack: (config) => {
config.plugins.delete('prefetch');
config.plugin('CompressionPlugin').use(CompressionPlugin);
}
};