Skip to content

Support source maps #44

@bhollis

Description

@bhollis

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 .map files 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?)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions