Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any static JS concatenation/minification modules for Express.js?

I liked using the Stylus for compressing my CSS stylesheets.

Are there any modules, that, similarly to Stylus, can automatically compress and minify static JS files? I am looking for something to use with Express.js.

like image 678
Lapple Avatar asked Nov 05 '22 22:11

Lapple


1 Answers

You could try the assetmanager middleware: https://github.com/mape/connect-assetmanager

As far as I can tell, it uses jsmin for minifying the javascript: http://www.crockford.com/javascript/jsmin.html

like image 133
Andz Avatar answered Nov 09 '22 02:11

Andz