Minify: css-clean use returnPromise in options

This commit is contained in:
webzwo0i 2022-02-13 21:45:31 +01:00
parent 4ed436dbbe
commit 849f3ec8e1

View file

@ -18,6 +18,7 @@ const compressCSS = async (filename, ROOT_DIR) => {
const output = await new CleanCSS({ const output = await new CleanCSS({
rebase: true, rebase: true,
rebaseTo: basePath, rebaseTo: basePath,
returnPromise: true,
}).minify([absPath]); }).minify([absPath]);
return output.styles; return output.styles;
} catch (error) { } catch (error) {