You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
477 B
24 lines
477 B
const CompressionPlugin = require('compression-webpack-plugin')
|
|
|
|
module.exports = {
|
|
devServer: {
|
|
port: 80,
|
|
https: false,
|
|
open: false
|
|
},
|
|
lintOnSave: false,
|
|
productionSourceMap: false,
|
|
configureWebpack: {
|
|
plugins: [
|
|
new CompressionPlugin({
|
|
algorithm: 'gzip',
|
|
test: /\.js$|\.html$|\.css$/,
|
|
filename: '[path].gz[query]',
|
|
minRatio: 1,
|
|
threshold: 10240,
|
|
deleteOriginalAssets: false
|
|
})
|
|
]
|
|
}
|
|
}
|