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 Jan 23, 2023
1 parent cbecf93 commit 2b26f53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/jest-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ async function getExamples (componentName) {
function renderSass (options) {
return sassRender({
includePaths: sassPaths,
quietDeps: true,
...options
})
}
Expand Down
2 changes: 1 addition & 1 deletion tasks/gulp/compile-assets.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ compileStylesheets.displayName = 'compile:scss'
function compileStylesheet (stream, options = {}) {
return stream
.pipe(plumber(errorHandler(stream, 'compile:scss')))
.pipe(sass(options))
.pipe(sass({ ...options, quietDeps: true }))
.pipe(postcss())
.pipe(plumber.stop())
}
Expand Down

0 comments on commit 2b26f53

Please sign in to comment.