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.
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
middlware JS : https://github.com/ncrohn/express-uglify
JS CSS, : https://github.com/breeswish/express-minify
. uglify-js.
googling "minify middleware express".
You can try the Google Closure compiler. You can find the online version here: http://closure-compiler.appspot.com/home