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

Move the styles.css sourcemap from inline to an external file #121

Merged
merged 1 commit into from
Jun 29, 2018

Conversation

dmethvin-gov
Copy link
Contributor

Looks like the embedded map was introduced in c889c5c, postcss generates an embedded map by default whereas node-sass does not generate a map at all unless provoked to do so. My solution here is to generate a map in both steps but make it an external map.

The map references the locations of the original source scss files; postcss does not seem to have the option to include original source, plus it's actually processing the combined css file that node-sass has already digested. With that in mind, I'm not sure how useful this map actually will be in debugging but we can determine that later. On the bright side, the css file is now 400KB lighter which was the original complaint of #120.

@dmethvin-gov dmethvin-gov mentioned this pull request Jun 29, 2018
Copy link
Contributor

@annekainicUSDS annekainicUSDS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@dmethvin-gov dmethvin-gov merged commit c7b4a37 into usds:master Jun 29, 2018
@dmethvin-gov dmethvin-gov deleted the 120-sourcemap branch June 29, 2018 15:50
@annekainicUSDS annekainicUSDS mentioned this pull request Aug 20, 2018
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

Successfully merging this pull request may close these issues.

2 participants