We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e934db1 commit 64f0265Copy full SHA for 64f0265
packages/ui/scripts/generateCSS.ts
@@ -2,6 +2,7 @@ import sass from 'sass';
2
import autoprefixer from 'autoprefixer';
3
import postcss from 'postcss';
4
import fs from 'fs-extra';
5
+import path from 'path';
6
import { globSync } from 'glob';
7
import { createTheme } from '../src/theme';
8
@@ -29,8 +30,11 @@ function writeCSS(props: {
29
30
.process(result.css, { from: undefined })
31
.then((result) => {
32
result.warnings().forEach((warn) => {
33
+ // eslint-disable-next-line no-console
34
console.warn(warn.toString());
35
});
36
+ const dir = path.dirname(`dist/${outputPath}.css`);
37
+ fs.ensureDirSync(dir);
38
fs.writeFileSync(`dist/${outputPath}.css`, result.css);
39
fs.writeFileSync(
40
`dist/${outputPath}.layer.css`,
0 commit comments