davidedc / livecodelab

a web based livecoding environment
http://livecodelab.net/
MIT License
328 stars 63 forks source link

Grunt `connect` task serves map files, but not the source they point to. #235

Closed xinaesthete closed 7 years ago

xinaesthete commented 10 years ago

I've noticed that it's necessary to disable Javascript source maps to debug effectively, as otherwise it seems that the browser tries to load the original .coffee source, which isn't served as it isn't under dist.

I have limited coffeescript experience, so I don't know how well this debugging works in general.

rumblesan commented 10 years ago

hhmm, good point, I'll see if I can fix this.

to be honest, I don't use the debugger very much, usually just look for the line the error was on and go from there. But if we're going to generate map files, we may as well make sure they work correctly

xinaesthete commented 10 years ago

I find the debugger quite handy, particularly for exploring the workings of unfamiliar code as well as actual debugging of errors in code as it's developed.

As it stands, the generated js is easy enough to follow and relate back, but it does require changing a global browser setting to disable source maps and should hopefully be fairly trivial to fix.

Cheers.

rumblesan commented 7 years ago

Fixed once the webpack build is merged