Skip to content

Add input AST with SourceMap attribution support #33

Description

@dotherightthing

I'm running grunt-bless on my CSS after it has been run through grunt-contrib-compass.

grunt-bless is a wrapper for bless.js, while grunt-contrib-compass is a wrapper for Compass.

When grunt-contrib-compass is run with the latest version of Compass (1.0.0.alpha.19), with:

"options": {
    "sourcemap": true
}

.. a sourcemap is generated for each CSS file that is generated:

print.css
print.css.map
screen.css
screen.css.map

The .map file can be read by browsers like Google Chrome, to trace styles back to the original Sass file.

This works fine - up until the point when grunt-bless is run on the Compass output. Now we have:

print.css
print.css.map
screen.css
screen.css.map
screen.blessed.css

There are three problems here:

  1. screen.blessed.css.map should be generated
  2. screen.blessed.css.map should contain the pointer "file": "screen.blessed.css" (rather that "file": "screen.css")
  3. screen.blessed.css should contain the pointer /*# sourceMappingURL=screen.blessed.css.map */

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions