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

USWDS-Compile - Bugfix: Fix sourcemaps pathing #79

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

mejiaj
Copy link
Contributor

@mejiaj mejiaj commented Nov 14, 2023

Sourcemaps show correct paths. Generated CSS now points to the correct source locations. Closes #61.

How to test

  1. Checkout jm-test-compile-sourcemaps-fix from uswds/uswds-site repo.
  2. Run npm install && npm start.
  3. Visit /documentation/settings/ page.
  4. Scroll down to yellow alert.
  5. In the inspector, verify that site-note correctly points to _uswds-theme-custom-styles.scss (i.e. that the sourcemaps link is now correct)

mejiaj pushed a commit to uswds/uswds-site that referenced this pull request Nov 14, 2023
@mejiaj mejiaj marked this pull request as ready for review November 14, 2023 17:52
Copy link
Member

@thisisdano thisisdano left a 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.

Copy link
Contributor

@mahoneycm mahoneycm left a comment

Choose a reason for hiding this comment

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

Lgtm!

@thisisdano thisisdano merged commit c0f3209 into develop Nov 15, 2023
@thisisdano thisisdano deleted the jm-bugfix-sourcemaps-path branch November 15, 2023 22:31
@thisisdano thisisdano mentioned this pull request Nov 27, 2023
mdmower-csnw added a commit to mdmower-csnw/uswds-compile that referenced this pull request Nov 21, 2024
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<>.
mdmower-csnw added a commit to mdmower-csnw/uswds-compile that referenced this pull request Nov 21, 2024
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.
mdmower-csnw added a commit to CSNW/uswds-compile that referenced this pull request Nov 25, 2024
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.
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.

USWDS-Compile - Bug: Sourcemaps have incorrect path
3 participants