angularjs-gulp-browserify-boilerplate icon indicating copy to clipboard operation
angularjs-gulp-browserify-boilerplate copied to clipboard

Serve *.js.map files as assets

Open Meekohi opened this issue 8 years ago • 4 comments

Enables SourceMaps to work correctly (for example in Chrome developer tools).

Meekohi avatar May 30 '16 16:05 Meekohi

The source maps are essentially inlined (using comments to give path hints I believe). Unless you've modified your gulp tasks the js.map files arent written to separate files. So fetching main.js.map actually results in a 404. At least in my test case.

In this screenshot you can see chrome automatically detecting the source maps:

image

StrikeForceZero avatar May 30 '16 20:05 StrikeForceZero

Hrm that is not the behavior I'm seeing -- mine generates a separate main.js.map (but then can't serve it correctly without this fix). I'll test again on a fresh install.

Meekohi avatar May 31 '16 13:05 Meekohi

Any update on this @Meekohi?

jakemmarsh avatar Jun 06 '16 20:06 jakemmarsh

Sorry been swamped -- still on my radar.

Meekohi avatar Jun 06 '16 23:06 Meekohi