This commit is contained in:
eric
2023-11-23 09:05:23 +08:00
parent bfba03c697
commit 0e6f134423
163 changed files with 22154 additions and 0 deletions

28
config/dev.js Normal file
View File

@@ -0,0 +1,28 @@
module.exports = {
env: {
NODE_ENV: '"development"',
},
defineConstants: {},
mini: {
webpackChain: (chain, webpack) => {
chain.merge({
plugin: {
install: {
plugin: require("terser-webpack-plugin"),
args: [
{
terserOptions: {
compress: true, // 默认使用terser压缩
// mangle: false,
keep_classnames: true, // 不改变class名称
keep_fnames: true, // 不改变函数名称
},
},
],
},
},
});
},
},
h5: {},
};