coffeescript icon indicating copy to clipboard operation
coffeescript copied to clipboard

nonminified coffe-script.js files

Open justinmchase opened this issue 15 years ago • 4 comments

I have found a link to the minified version of coffee-script.js on coffeescript.org, I am just wondering where or how I can get ahold of a non-minified version for debugging?

justinmchase avatar Dec 30 '10 22:12 justinmchase

I reworked the Cakefile task build:browser so that, if one does not have uglifyjs installed, it will output it anyway, unminified. See the task here: https://gist.github.com/760455

michaelficarra avatar Dec 30 '10 23:12 michaelficarra

There isn't a non-minified version in the Repo, but on master, I've updated the build:browser task to allow you to build an unminified version by setting an environment variable. Try this:

MINIFY=false bin/cake build:browser

jashkenas avatar Jan 15 '11 20:01 jashkenas

Please, couldn't we get an unminified coffee-script.js automatically in each release as well? Call it coffee-script.unmin.js or whatever... surely justncase80 and me aren't the only ones who would benefit. Not just for debugging but also for those who compile all .js files for a given site into one big uglified .js and double-minifying coffeescript seems to result in uncomprehensible browser errors not occuring when embedding the original coffee-script.js separately as-is.

Would this be very hard or complicated to pull off? Or do those who want this have to build CS for every release themselves manually from scratch for that?

Thanks so much for giving this some new attention... cheers!

pearjoint avatar Jun 09 '11 16:06 pearjoint

I know this is old, but I also just ran into needing a non-minified browser coffeescript.js, thumbs up on this making it to the release.

Masterxilo avatar May 05 '16 20:05 Masterxilo