Skip to content

Commit

Permalink
Silence Sass warnings from dependencies
Browse files Browse the repository at this point in the history
For example we can’t fix “Using / for division outside of calc() is deprecated” in:

```
govuk_frontend_toolkit
govuk-elements-sass
```

See https://frontend.design-system.service.gov.uk/importing-css-assets-and-javascript/#silence-deprecation-warnings-from-dependencies-in-dart-sass
  • Loading branch information
colinrotherham committed Feb 14, 2023
1 parent 690558d commit b6208ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tasks/compile-stylesheets.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ export async function compileStylesheet ([modulePath, { srcPath, destPath }]) {
file: moduleSrcPath,
outFile: moduleDestPath,

// Turn off dependency warnings
quietDeps: true,

// Enable source maps
sourceMap: true,
sourceMapContents: true,
Expand Down

0 comments on commit b6208ef

Please sign in to comment.