Skip to content

USWDS-Compile - Bugfix: Fix sourcemaps pathing#79

Merged
thisisdano merged 1 commit into
developfrom
jm-bugfix-sourcemaps-path
Nov 15, 2023
Merged

USWDS-Compile - Bugfix: Fix sourcemaps pathing#79
thisisdano merged 1 commit into
developfrom
jm-bugfix-sourcemaps-path

Conversation

@mejiaj

@mejiaj mejiaj commented Nov 14, 2023

Copy link
Copy Markdown
Contributor

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

@thisisdano thisisdano left a comment

Copy link
Copy Markdown
Contributor

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.

@mahoneycm mahoneycm left a comment

Copy link
Copy Markdown
Contributor

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