Nodejs Tips - Minify Javascript files

Install babel-minify

$ npm install -g babel-minify

Minify all .js files

@echo off

for /R %%1 in (*.js) do (
    echo Minify %%1...
    call minify %%1 -o %%1
)

echo Finished.