-
Notifications
You must be signed in to change notification settings - Fork 25
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
USWDS-Compile - Bugfix: Fix sourcemaps pathing #79
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work like a charm. I clarified Step 5 in the instructions to make it clear what we're supposed to be checking, since I was a little confused for a sec.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm!
Let end users define options that will be passed to sass-embedded during compilation. Omit outputStyle from configurable options to preserve sourcemaps paths: uswds#79. Note that includePaths is a legacy API option, so it doesn't need to be included in the types Omit<>.
Let end users define options that will be passed to sass-embedded during compilation. Omit outputStyle from configurable options to preserve sourcemaps paths: uswds#79. Note that includePaths is a legacy API option, so it doesn't need to be included in the types Omit<>. Provide a good out-of-box experience by defaulting to sass options {quietDeps: true}, so that deprecation warnings related to the user's own styles are raised, but those from USWDS styles are suppressed.
Let end users define options that will be passed to sass-embedded during compilation. Omit outputStyle from configurable options to preserve sourcemaps paths: uswds#79. Note that includePaths is a legacy API option, so it doesn't need to be included in the types Omit<>. Provide a good out-of-box experience by defaulting to sass options {quietDeps: true}, so that deprecation warnings related to the user's own styles are raised, but those from USWDS styles are suppressed.
Sourcemaps show correct paths. Generated CSS now points to the correct source locations. Closes #61.
How to test
jm-test-compile-sourcemaps-fix
fromuswds/uswds-site
repo.npm install && npm start
./documentation/settings/
page.site-note
correctly points to_uswds-theme-custom-styles.scss
(i.e. that the sourcemaps link is now correct)