Is it possible to specify a variable within SASS from the GruntFile.js prior to compiling with Grunt-contrib-sass?
For example, if absolute paths were required in the CSS the path could be defined by the Gruntfile based on a dev build or a deploy build.
For those familiar with LESS (https://github.com/gruntjs/grunt-contrib-less), this would be a SASS equivalent to LESS' modifyVars
.
Example GruntFile
...
sass: {
deploy: {
vars: {
absolute: "http://www.example.com/"
}
},
dev: {
vars: {
absolute: "/local_path/"
}
}
}
...
Example SASS
.element {
background-image: url("#{absolute}image.jpg");
}