I'm using grunt-contrib-css to process my sass files, this is the workflow im following:
- partial.sass contains all the styles.
- home.sass import partial.sass.
- home.css gets created from home.sass.
- home.min.css is the minified version of home.css, and the one included on the .html file.
However, the map for home.min.css points to home.css but what I need is the map to be related to the partial file. is this possible?
PD: I'm using grunt-contrib-sass to process the sass file and grunt-contrib-cssmin to minify the css.
you don't need use grunt-contrib-cssmin to minify your css, grunt sass task does that.
use
style: "compressed",to get a minified file andstyle: "expanded",for debuging with line numberbellow a sample for you solve this.
gruntfile.js
I hope this can help you.