Skip to content

Node.js based forum software built for the modern web

refactor: silence saas deprecations on prod

Barış Soner Uşaklı05e4307e5a84
diff --git a/src/meta/minifier.js b/src/meta/minifier.js
index 43802ef7e7..a341a92e96 100644
--- a/src/meta/minifier.js
+++ b/src/meta/minifier.js
@@ -160,9 +160,13 @@ Minifier.js.bundle = async function (data, fork) {
actions.buildCSS = async function buildCSS(data) {
let css = '';
try {
- const scssOutput = await sass.compileStringAsync(data.source, {
+ const opts = {
loadPaths: data.paths,
- });
+ };
+ if (data.minify) {
+ opts.silenceDeprecations = ['mixed-decls'];
+ }
+ const scssOutput = await sass.compileStringAsync(data.source, opts);
css = scssOutput.css.toString();
} catch (err) {
console.error(err.stack);