Created
January 17, 2014 11:55
-
-
Save nickdima/8472248 to your computer and use it in GitHub Desktop.
grunt config for fixing sass source maps with grunt-text-replace plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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