Node.js based forum software built for the modern web
refactor: silence saas deprecations on prod
Barış Soner Uşaklı3fdec51a40c1
diff --git a/src/meta/minifier.js b/src/meta/minifier.jsindex 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);