inlight-media / www-foundation

0 stars 0 forks source link

Option to not minify during development. #4

Open tonymilne opened 9 years ago

tonymilne commented 9 years ago

It might be good to have either an option to minify / not minify or to just not minify during development.

The upside of minifying during development is that we eliminate any differences between environments and the possibility to let bugs sneak. The downside is obviously that it's trickier to debug especially if the source maps aren't working.

I'd like to compress only on release task. Incase we need to debug, it's a nice reference at times. This can probably come at a later stage -- @oliverbenns

Only IE11 supports source maps at this time, making debugging extremely difficult on older versions -- http://stackoverflow.com/questions/17945833/source-mapping-in-ie-sourceurl , http://blog.oio.de/2014/04/04/internet-explorer-11-source-map-based-debugging/ -- @oliverbenns

oliverbenns commented 9 years ago

The upside of minifying during development is that we eliminate any differences between environments and the possibility to let bugs sneak.

This should still remain important, so perhaps rather than solving it with suggestion #5 we have a gulp 'debug' task of some description.