dev.ts 772 B

1234567891011121314151617181920212223242526272829
  1. import type { UserConfigExport } from "@tarojs/cli";
  2. export default {
  3. logger: {
  4. quiet: false,
  5. stats: true
  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: false, // 不改变class名称
  19. // keep_fnames: false, // 不改变函数名称
  20. // },
  21. // },
  22. // ],
  23. // },
  24. // },
  25. // })
  26. // },
  27. },
  28. h5: {}
  29. } satisfies UserConfigExport