Eclipse Community

Javascript Reduction

Post Reply   Page 1 of 1  [ 3 posts ]
First unread post
Author Message
The-10-Pen
Post subject: Javascript Reduction
+ Posted: 01 Dec 2025, 23:02
Offline
 
Posts: 226
Joined: 16 Feb 2025, 08:43
OS: Win10 2016 LTSB
 
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.


Top
Profile Quote
teknixstuff
Post subject: Javascript Reduction
+ Posted: 02 Dec 2025, 00:02
User avatar
Offline
 
Posts: 31
Joined: 15 Aug 2024, 21:25
OS: W10 LTSC 2021 x64
Contact: Website
 
You'll need node.js, then run this in cmd:
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!


Top
Profile Quote
The-10-Pen
Post subject: Javascript Reduction
+ Posted: 02 Dec 2025, 09:33
Offline
 
Posts: 226
Joined: 16 Feb 2025, 08:43
OS: Win10 2016 LTSB
 
Awesome! Working perfectly. Many thanks.


Top
Profile Quote
Display: Sort by: Direction:
Post Reply   Page 1 of 1  [ 3 posts ]
Return to “Community Projects”
Jump to:

Who is online

Users browsing this forum: No registered users and 0 guests