autoprefixer-rails
autoprefixer-rails copied to clipboard
Update metadata[:map]
AutoPrefixer has support for SourceMaps but in Sprockets 4.x there is a metadata[:map]
onto which we tap with Jekyll-Assets (for efficiency), we then transform that, update the file names and spit it out as a .map
file, this works quite well, because Sprockets itself even updates it as it Uglifies, or uses CSS.
It would be nice if AutoPrefixer also did this, this way our maps don't potentially end up out of sync.
Do you want to make pull request for it?
I'll look into it next week, but not this week, I'm busy polishing the rewrite of Jekyll-Assets and want to get it out today sometime now that I just finished figuring out how AutoPrefixer was removing our sourceMappingURL even though we were supposed to come after it.
Note: It wasn't an AutoPrefixer bug.
I don't use Autoprefixer Rails this days and it will be hard to me to fix this issue.