Skip to content

Instantly share code, notes, and snippets.

@nickdima
Created January 17, 2014 11:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickdima/8472248 to your computer and use it in GitHub Desktop.
Save nickdima/8472248 to your computer and use it in GitHub Desktop.
grunt config for fixing sass source maps with grunt-text-replace plugin
replace:
cssmap:
src: ["tmp/css/app.css.map"]
dest: "public/css/"
replacements: [
from: "\"file\": \"app.scss\""
to: "\"file\": \"app.css\""
,
from: "app/"
to: "#{__dirname}/app/"
,
from: "vendor/"
to: "#{__dirname}/vendor/"
]
css:
src: ["tmp/css/app.css"]
dest: "public/css/"
replacements: [
from: "/*# sourceMappingURL=undefined */"
to: "/*# sourceMappingURL=app.css.map */"
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment