Skip to content

Node.js based forum software built for the modern web

refactor: silence deprecations in prod

Barış Soner Uşaklıd75b169cd8ed
diff --git a/src/meta/minifier.js b/src/meta/minifier.js
index 6aa975b334..6a617cc45d 100644
--- a/src/meta/minifier.js
+++ b/src/meta/minifier.js
@@ -164,7 +164,10 @@ actions.buildCSS = async function buildCSS(data) {
loadPaths: data.paths,
};
if (data.minify) {
- opts.silenceDeprecations = ['mixed-decls', 'color-functions'];
+ opts.silenceDeprecations = [
+ 'legacy-js-api', 'mixed-decls', 'color-functions',
+ 'global-builtin', 'import',
+ ];
}
const scssOutput = await sass.compileStringAsync(data.source, opts);
css = scssOutput.css.toString();