MorJS jsMinimizer - JS 压缩器

2023-11-07 16:24 更新
  • 类型: ​string​ 或 ​boolean​
  • 默认值: ​null​
  • 可选值:
  1. ​ters​
  2. ​eresbuild​
  3. ​swc​
  4. ​true​ 或 ​false​

开关或指定 js 代码压缩器。

默认值为 ​null​ 时会基于 ​compilerOptions.target​ 的值来自动选择压缩器:

  • 当 ​compilerOptions.target​ 的值是 ​ES5​ 时,​jsMinimizer​ 为 ​terser​
  • 当 ​compilerOptions.target​ 的值不是 ​ES5​ 时,​jsMinimizer​ 为 ​esbuild​

如果用户配置了 jsMinimizer 则以用户配置的为准。


以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号