autoprefixer-rails icon indicating copy to clipboard operation
autoprefixer-rails copied to clipboard

Update metadata[:map]

Open envygeeks opened this issue 7 years ago • 3 comments

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.

envygeeks avatar Oct 27 '17 13:10 envygeeks

Do you want to make pull request for it?

ai avatar Oct 27 '17 13:10 ai

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.

envygeeks avatar Oct 27 '17 13:10 envygeeks

I don't use Autoprefixer Rails this days and it will be hard to me to fix this issue.

ai avatar Oct 27 '17 14:10 ai