配置文件修改

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2024-01-24 14:20:07 +08:00
parent 3366c05099
commit e56058ff76
3 changed files with 17704 additions and 1 deletions

View File

@@ -8,6 +8,7 @@
*/
const autoprefixer = require('autoprefixer')
const pxtoviewport = require('postcss-px-to-viewport')
const TerserPlugin = require("terser-webpack-plugin");
module.exports = {
publicPath: process.env.NODE_ENV === 'production' ? '/' : '/',
@@ -41,5 +42,19 @@ module.exports = {
},
devServer: {
port: 8082
}
},
configureWebpack: {
optimization: {
minimizer: [
new TerserPlugin({
terserOptions: {
output: {
comments: false
}
},
extractComments: false
})
]
}
},
}