Are there any static JC concatenation / mini modules for Express.js?

I liked using Stylus to compress my CSS styles.

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

+5
source share
3 answers

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

As far as I can tell, it uses jsmin to minimize javascript: http://www.crockford.com/javascript/jsmin.html

+3

middlware JS : https://github.com/ncrohn/express-uglify

JS CSS, : https://github.com/breeswish/express-minify

. uglify-js.

googling "minify middleware express".

0

You can try the Google Closure compiler. You can find the online version here: http://closure-compiler.appspot.com/home

-1
source

All Articles