fix postcss api change (breaking semver?)

This commit is contained in:
Bruno Windels 2020-08-04 18:02:34 +01:00 committed by Bruno Windels
parent 0434af5049
commit 3a5e3a69f2

View file

@ -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");
}