-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Labels
Milestone
Description
We should have the ability to produce sourcemaps for combined files as well as CoffeeScript, SASS/SCSS, etc.
- Wait for Sprockets to finish basic SourceMap support: https://github.com/sstephenson/sprockets/tree/source-maps
- Integrate with CoffeeScript's built in support for generating source maps (see https://github.com/markbates/coffee-rails-source-maps). This seems pretty hard when combined with Sprockets - maybe we should just wait for Sprockets to figure it out. See Source Maps sstephenson/sprockets#311
- Integrate with the experimental Compass sourcemaps stuff... again might be best to wait for Sprockets to handle that.
- Update our code to include
.mapfiles in the sitemap when sitemaps are available so they get built (Sprockets will be serving them via a URL query parameter. - Make sure our JS minification supports creating source maps. Uglifier already has an option for this: https://github.com/lautis/uglifier#usage but the harder challenge comes when we have multi-stage sourcemaps (compile coffee -> js, then combine using uglifier - how do you make sure the minified stuff maps to the original code?)
kevincox