From 3a5e3a69f27c01c5dd00186482185302089a98c7 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 4 Aug 2020 18:02:34 +0100 Subject: [PATCH] fix postcss api change (breaking semver?) --- scripts/build.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build.mjs b/scripts/build.mjs index eb05ecf3..bd18eccf 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -128,8 +128,8 @@ async function buildCss() { const cssMainFile = path.join(projectDir, "src/ui/web/css/main.css"); const preCss = await fs.readFile(cssMainFile, "utf8"); const cssBundler = postcss([postcssImport]); - const postCss = await cssBundler.process(preCss, {from: cssMainFile}); - await fs.writeFile(path.join(targetDir, "brawl.css"), postCss, "utf8"); + const result = await cssBundler.process(preCss, {from: cssMainFile}); + await fs.writeFile(path.join(targetDir, "brawl.css"), result.css, "utf8"); }