Due to server slowness, downtime, and other issues, Eclipse will be moving to a more stable and efficient platform that should result in much better stability. There is no timeline for this yet, just want you to know what's happening with all the downtime and I have a plan to fix it.

Javascript Reduction

Have a project that you want to share, but it's not big enough to warrant an entire category? This is the place.
The-10-Pen
Posts: 411
Joined: 16 Feb 2025, 08:43
OS: Win10 2016 LTSB
Has thanked: 8 times
Been thanked: 71 times
United States of America

Javascript Reduction

Unread post by The-10-Pen »

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.

User avatar
teknixstuff
Posts: 40
Joined: 15 Aug 2024, 21:25
OS: W10 LTSC 2021 x64
Has thanked: 5 times
Been thanked: 20 times
Contact:

Javascript Reduction

Unread post by teknixstuff »

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: 411
Joined: 16 Feb 2025, 08:43
OS: Win10 2016 LTSB
Has thanked: 8 times
Been thanked: 71 times
United States of America

Javascript Reduction

Unread post by The-10-Pen »

Awesome! Working perfectly. Many thanks.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest