angularjs-gulp-browserify-boilerplate
angularjs-gulp-browserify-boilerplate copied to clipboard
Serve *.js.map files as assets
Enables SourceMaps to work correctly (for example in Chrome developer tools).
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:
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.
Any update on this @Meekohi?
Sorry been swamped -- still on my radar.