Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update metadata[:map] #127

Open
envygeeks opened this issue Oct 27, 2017 · 3 comments
Open

Update metadata[:map] #127

envygeeks opened this issue Oct 27, 2017 · 3 comments

Comments

@envygeeks
Copy link

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.

@ai
Copy link
Owner

ai commented Oct 27, 2017

Do you want to make pull request for it?

@envygeeks
Copy link
Author

envygeeks commented Oct 27, 2017

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.

@ai
Copy link
Owner

ai commented Oct 27, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@ai @envygeeks and others