gruntjs / grunt-contrib-sass

Compile Sass to CSS.
http://gruntjs.com/
MIT License
848 stars 141 forks source link

Sass 3.4 Changed Format for Source Map Option #140

Closed donotknow closed 10 years ago

donotknow commented 10 years ago

Looks like with Sass 3.4 (it’s at RC 3 at the moment), the sourcemap CLI option has to be passed with the equals sign.

sass --sourcemap

needs to be updated to:

sass --sourcemap=auto

Looks like the other valid options are --sourcemap=file, --sourcemap=inline, and --sourcemap=none.

donotknow commented 10 years ago

Also see, https://github.com/sass/sass/issues/1321, they might fix it on the sass side.

hail2u commented 10 years ago

I think supporting both Sass v3.3.x and v3.4.x is very hard. dargs package used in this Grunt plugin does not support argument option separated by =. And Sass's default behavior changes to generate Source Maps if this option is not set.

I've patched by hand, but this cannot make tests pass.

sindresorhus commented 10 years ago

Fixed in 0.8.0 ;)