dev.ts 710 B

1234567891011121314151617181920212223242526272829
  1. module.exports = {
  2. env: {
  3. NODE_ENV: '"development"'
  4. },
  5. defineConstants: {
  6. },
  7. mini: {
  8. // webpackChain: (chain, webpack) => {
  9. // chain.merge({
  10. // plugin: {
  11. // install: {
  12. // plugin: require('terser-webpack-plugin'),
  13. // args: [
  14. // {
  15. // terserOptions: {
  16. // compress: true, // 默认使用terser压缩
  17. // // mangle: false,
  18. // keep_classnames: true, // 不改变class名称
  19. // keep_fnames: true, // 不改变函数名称
  20. // },
  21. // },
  22. // ],
  23. // },
  24. // },
  25. // })
  26. // },
  27. },
  28. h5: {}
  29. }