配置文件修改

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

17687
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -59,6 +59,7 @@
"node-sass": "^4.14.1",
"postcss-px-to-viewport": "^1.1.1",
"sass-loader": "^7.3.1",
"terser-webpack-plugin": "^4.2.3",
"vue-template-compiler": "^2.6.10"
}
}

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
})
]
}
},
}