24 lines
479 B
JavaScript
24 lines
479 B
JavaScript
const CompressionPlugin = require('compression-webpack-plugin')
|
|
|
|
module.exports = {
|
|
devServer: {
|
|
port: 8084,
|
|
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
|
|
})
|
|
]
|
|
}
|
|
}
|