silence color function deprecations on prod

This commit is contained in:
Barış Soner Uşaklı
2024-11-21 17:41:11 -05:00
parent 2324a5bf77
commit d32a7c3283

View File

@@ -164,7 +164,7 @@ actions.buildCSS = async function buildCSS(data) {
loadPaths: data.paths,
};
if (data.minify) {
opts.silenceDeprecations = ['mixed-decls'];
opts.silenceDeprecations = ['mixed-decls', 'color-functions'];
}
const scssOutput = await sass.compileStringAsync(data.source, opts);
css = scssOutput.css.toString();