caleb / broccoli-fast-browserify

A caching, flexible Browserify Broccoli filter
https://github.com/caleb/broccoli-fast-browserify
BSD 3-Clause "New" or "Revised" License
14 stars 7 forks source link

sourcemaps not working #13

Open Globegitter opened 8 years ago

Globegitter commented 8 years ago

chrome only seems to detect sourcemaps when you provide a separate app.js.map file. I got my local broccoli-fast-browserify to work by using https://github.com/thlorenz/exorcist. Not sure if it is the smartest way to do it as it does impact build time (total build time gone up 1-2s, rebuild ~1s) but will PR soon.

Globegitter commented 8 years ago

Or maybe something like https://github.com/myfreeweb/broccoli-source-map or https://github.com/ef4/broccoli-sourcemap-concat would be faster and then just have debug to false.

caleb commented 8 years ago

That would be great, thanks.

caleb commented 8 years ago

I tried broccoli-sourcemap-concat and it's very cool, but I think you'd still have to set debug to true because it strips out inlined source maps (like exorcist). It also happens to join files together, but that's the job of browserify :)

I think an example with either exorcist, broccoli-source-map or broccoli-sourcemap-concat would be nice.