Skip to content

Commit

Permalink
Rename setting to sassDeprecationWarnings and update logic to be more…
Browse files Browse the repository at this point in the history
… human readable
  • Loading branch information
mahoneycm committed Dec 10, 2024
1 parent 1074780 commit 7a4c434
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Use path settings to customize where USWDS Compile looks for USWDS source and ou
| `sprite.projectIconsOnly` | `false` | Include _only_ the icons in `paths.src.projectIcons` in the icon sprite. |
| `settings.compile.browserslist` | `["> 2%", "last 2 versions", "IE 11", "not dead"]` | Define the [browserslist query](https://github.com/browserslist/browserslist?tab=readme-ov-file#queries) for CSS prefixes generated by [autoprefixer](https://github.com/postcss/autoprefixer). |
| `settings.compile.sassSourcemaps` | `true` | Include sourcemap when compiling SASS to CSS. |
| `settings.compile.quietSassDeps` | `true` | Silence USWDS Sass deprecation warnings. This will not silence deprecation warnings for project Sass. |
| `settings.compile.sassDeprecationWarnings` | `false` | Show USWDS Sass deprecation warnings. When set to `true`, Sass will output deprecation warnings for USWDS code in the terminal during compilation. Deprecation warnings for non-USWDS Sass will output even when this value is set to `false`. |

### Functions

Expand Down
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ let settings = {
},
browserslist: ["> 2%", "last 2 versions", "IE 11", "not dead"],
sassSourcemaps: true,
quietSassDeps: true
sassDeprecationWarnings: false
},
sprite: {
width: 24,
Expand Down Expand Up @@ -199,7 +199,7 @@ function buildSass() {
sass({
outputStyle: "compressed",
includePaths: buildSettings.includes,
quietDeps: settings.compile.quietSassDeps,
quietDeps: !settings.compile.sassDeprecationWarnings,
}).on("error", handleError)
)
.pipe(replace(/\buswds @version\b/g, `based on uswds v${pkg}`))
Expand Down

0 comments on commit 7a4c434

Please sign in to comment.