-
Notifications
You must be signed in to change notification settings - Fork 16
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 - Feature: Allow disabling sourcemaps #70
Labels
Milestone
Comments
github-actions
bot
added
the
Status: Triage
We're triaging this issue and grooming if necessary
label
Aug 10, 2023
mejiaj
added
Affects: Compiling
Related to compiling Sass or JavaScript
and removed
Status: Triage
We're triaging this issue and grooming if necessary
labels
Aug 16, 2023
mdmower-csnw
added a commit
to mdmower-csnw/uswds-compile
that referenced
this issue
Jun 5, 2024
- Drop gulp-sourcemaps is seemingly neglected and is the reason for 3 npm audit warnings. Gulp v4 and v5 have native support for toggling sourcemaps. - Add new boolean setting `settings.compile.sassSourcemaps` that defaults to `true` but can be set to `false` in consumer projects to disable outputting SCSS sourcemaps. This addresses the SCSS portion of uswds#70. JS would need a separate setting.
mdmower-csnw
added a commit
to mdmower-csnw/uswds-compile
that referenced
this issue
Jun 5, 2024
- Drop `gulp-sourcemaps` which is seemingly neglected and is the reason for 3 npm audit warnings. Gulp v4 and v5 have native support for toggling sourcemaps. - Add new boolean setting `settings.compile.sassSourcemaps` that defaults to `true` but can be set to `false` in consumer projects to disable outputting sass sourcemaps. This addresses the sass portion of uswds#70. Exclusion of USWDS JS sourcemaps would need a separate setting and handling.
Moving this back into "Fed final" since we have a proposed fix in #110 |
github-project-automation
bot
moved this from Fed Final Review
to Done
in USWDS Core Project Data
Jul 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Is your feature request related to a problem? Please describe.
When using this tool in our USWDS + Drupal + static site generation setup the .map sourcemap files aren't copied over because they are comments in the css and not actual source file references. This causes the .map files to be listed as missing in the console. If we can conditionally disable sourcemaps as an option then we would not have missing files in the console log.
Describe the solution you'd like
Add an option to disable sourcemaps in the output css.
Describe alternatives you've considered
No response
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: