Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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