• 请不要在回答技术问题时复制粘贴 AI 生成的内容
PepperEgg
V2EX  ›  程序员

有没有 win 下好用的 JS 压缩工具

  •  
  •   PepperEgg · Jul 18, 2022 · 1733 views
    This topic created in 1572 days ago, the information mentioned may be changed or developed.

    要支持遍历当前文件夹下所有.js 文件然后覆写压缩这种 有木有大佬用过类似的

    4 replies  •  2022-07-18 23:19:38 +08:00
    32uKHwVJ179qCmPj
    32uKHwVJ179qCmPj
    Jul 18, 2022
    1
    基于 obfuscator.io 自己写一个
    learnshare
    learnshare
    Jul 18, 2022
    2
    grunt/gulp
    lisongeee
    lisongeee
    Jul 18, 2022
    3
    你要 cli 还是 gui ? cli 可以用 esbuild
    https://esbuild.github.io/api/#minify
    ```shell
    pnpm add -D esbuild
    esbuild path/your.js --bundle --minify --outfile=path/your.mini.js
    ```
    zhuweiyou
    zhuweiyou
    Jul 18, 2022
    4
    gulp
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3195 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 04:30 · PVG 12:30 · LAX 20:30 · JFK 23:30
    ♥ Do have faith in what you're doing.