MorJS jsMinimizer - JS 壓縮器

2023-11-07 16:24 更新
  • 類型: ?string? 或 ?boolean?
  • 默認(rèn)值: ?null?
  • 可選值:
  1. ?ters?
  2. ?eresbuild?
  3. ?swc?
  4. ?true? 或 ?false?

開(kāi)關(guān)或指定 js 代碼壓縮器。

默認(rèn)值為 ?null? 時(shí)會(huì)基于 ?compilerOptions.target? 的值來(lái)自動(dòng)選擇壓縮器:

  • 當(dāng) ?compilerOptions.target? 的值是 ?ES5? 時(shí),?jsMinimizer? 為 ?terser?
  • 當(dāng) ?compilerOptions.target? 的值不是 ?ES5? 時(shí),?jsMinimizer? 為 ?esbuild?

如果用戶配置了 jsMinimizer 則以用戶配置的為準(zhǔn)。


以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)