mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-22 11:46:44 +08:00
配置文件修改
This commit is contained in:
@@ -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
|
||||
})
|
||||
]
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user