优化代码

This commit is contained in:
2025-12-24 10:08:38 +08:00
parent 03176aabdc
commit 18793b3e6d
143 changed files with 17043 additions and 10119 deletions

View File

@@ -33,15 +33,21 @@ const webpackConfig = merge(baseWebpackConfig, {
new webpack.DefinePlugin({
'process.env': env
}),
new UglifyJsPlugin({
uglifyOptions: {
compress: {
warnings: false
}
},
sourceMap: config.build.productionSourceMap,
parallel: true
}),
// new UglifyJsPlugin({
// uglifyOptions: {
// compress: {
// warnings: false,
// drop_console: true,
// pure_funcs: ['console.log']
// },
// mangle: false,
// output: {
// beautify: true
// }
// },
// sourceMap: config.build.productionSourceMap,
// parallel: true
// }),
// extract css into its own file
new ExtractTextPlugin({
filename: utils.assetsPath('css/[name].css?v=' + version), // css/[name].[contenthash].css