epeli/piler — Issue #3: Adding an option to disable UglifyJS
Author: Cowboy-coder
Created: 2011-11-03 18:13:30+00:00
State: open

Really nice lib!

The reason it'd be nice to disable uglifyJS is to prevent it from breaking code in production mode. The reason I'm asking is because I'm currently depending on CoffeeKup https://github.com/mauricemach/coffeekup for client-side rendering but as soon as UglifyJS "uglifies" my code, CoffeeKup breaks.
And I think it would be nice in other situations aswell, because currently you are pretty much screwed if you are using a 3rd party lib that doesn't support being "uglified".

Also... :)

The only way to have the css and the javascript files being minified right now is by running `NODE_ENV=production`, but it would be nice if this wasn't hard-coded so that you could serve minified css and js files in `staging` environments and such as well.