Skip to content

Commit

Permalink
fix: suppress some SASS deprecation warnings for now
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenmacdonald committed Dec 16, 2024
1 parent 958f617 commit 6946d67
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build-scss.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ var coreResult = sass.renderSync({
file: './scss/core/core.scss',
outputStyle: 'compressed',
importer: tildaImporter,
// For now we can't resolve these warnings as we need to upgrade our 'bootstrap' dependency to do so:
silenceDeprecations: ['abs-percent', 'color-functions', 'import', 'mixed-decls', 'global-builtin'],
});

fs.writeFileSync('./dist/paragon.css', coreResult.css);
2 changes: 1 addition & 1 deletion www/build-themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ THEMES.forEach(theme => {
file: `./src/scss/${theme.stylesheet}.scss`,
outputStyle: 'compressed',
importer,
quietDeps: true,
silenceDeprecations: ['abs-percent', 'color-functions', 'import', 'mixed-decls', 'global-builtin'],
});

fs.writeFileSync(`./public/static/${theme.stylesheet}.css`, result.css);
Expand Down
3 changes: 3 additions & 0 deletions www/gatsby-config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ const plugins = [
namedExport: false,
},
},
sassOptions: {
silenceDeprecations: ['abs-percent', 'color-functions', 'import', 'mixed-decls', 'global-builtin'],
},
},
},
'gatsby-plugin-react-helmet',
Expand Down
1 change: 1 addition & 0 deletions www/utils/createCssUtilityClassNodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ function createCssUtilityClassNodes({
}
return { file: resolvedUrl };
},
silenceDeprecations: ['abs-percent', 'color-functions', 'import', 'mixed-decls', 'global-builtin'],
})
.css.toString();

Expand Down

0 comments on commit 6946d67

Please sign in to comment.