Does anyone know of any freebie third-party tools that will take a folder of miscellaneous file types and subfolders within subfolders of miscellaneous file types and perform a "task" on all .js files and "shrink" / "compress" them in the sense of removing all "white space"?
Thanks in advance.
Javascript Reduction
-
The-10-Pen
- Posts: 215
- Joined: 16 Feb 2025, 08:43
- OS: Win10 2016 LTSB
- Has thanked: 3 times
- Been thanked: 58 times

- teknixstuff
- Posts: 29
- Joined: 15 Aug 2024, 21:25
- OS: W10 LTSC 2021 x64
- Has thanked: 5 times
- Been thanked: 15 times
- Contact:
Javascript Reduction
You'll need node.js, then run this in cmd:
Code: Select all
for %i in (*.js) do (npx minify < "%~fi" > "%~fi.out" & move /y "%~fi.out" "%~fi")Developer of Revert8Plus, Shockwave Flashback, Dreamscene reloaded, and other software. Check out my website!
-
The-10-Pen
- Posts: 215
- Joined: 16 Feb 2025, 08:43
- OS: Win10 2016 LTSB
- Has thanked: 3 times
- Been thanked: 58 times

Who is online
Users browsing this forum: No registered users and 1 guest