nDmitry / grunt-autoprefixer

Parse CSS and add vendor-prefixed CSS properties using the Can I Use database. Based on Autoprefixer.
MIT License
795 stars 60 forks source link

Sourcemap annotations should be string, not boolean, values #105

Closed Bendihossan closed 9 years ago

Bendihossan commented 9 years ago

I came across this because in my project's Gruntfile.js I use LESS to generate a sourcemap and add an annotation to the output, then run autoprefixer however this meant it would generate a new sourcemap based on the single .css output from LESS and so the sourcemap didn't actually map the LESS files used to build it.

With this change the the annotation option will take a string which will specify what the annotation comment value should be, which the autoprefixer then updates the outputted CSS with.

Bendihossan commented 9 years ago

Thanks for merging & tagging @nDmitry :)