Eclipse Community
https://board.eclipse.cx/

Javascript Reduction
https://board.eclipse.cx/viewtopic.php?t=919
Page 1 of 1
Author:  The-10-Pen [ 01 Dec 2025, 23:02 ]
Post subject:  Javascript Reduction

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.

Author:  teknixstuff [ 02 Dec 2025, 00:02 ]
Post subject:  Javascript Reduction

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")

Author:  The-10-Pen [ 02 Dec 2025, 09:33 ]
Post subject:  Javascript Reduction

Awesome! Working perfectly. Many thanks.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Limited