-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
executable file
·48 lines (47 loc) · 1.24 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
const TerserPlugin = require("terser-webpack-plugin")
/*const zlib = require("zlib")*/
module.exports = {/*
pluginOptions: {
compression:{
brotli: {
filename: '[file].br[query]',
algorithm: 'brotliCompress',
include: /\.(js|css|html|svg|json)(\?.*)?$/i,
compressionOptions: {
params: {
[zlib.constants.BROTLI_PARAM_QUALITY]: 11,
},
},
minRatio: 0.8,
},
gzip: {
filename: '[file].gz[query]',
algorithm: 'gzip',
include: /\.(js|css|html|svg|json)(\?.*)?$/i,
minRatio: 0.8,
}
}
},*/
runtimeCompiler: true,
productionSourceMap: false,
configureWebpack: {
resolve: {
alias: {
moment: 'moment/src/moment',
}
},
optimization: {
minimize: true,
minimizer: [new TerserPlugin()],
splitChunks: {
chunks: 'all'
}
},
},
pages: {
index: {
entry: 'src/main.ts',
title: 'Weeki',
},
}
}