feat(css): inline popover styles from carbon 10.47

This commit is contained in:
Eric Liu 2022-03-01 06:48:42 -08:00
commit a2b3b3ba2d

View file

@ -5,6 +5,14 @@ const postcss = require("postcss");
const path = require("path"); const path = require("path");
(async () => { (async () => {
const popover = fs.readFileSync(
"node_modules/carbon-components-10.47/src/components/popover/_popover.scss",
"utf-8"
);
const popover_mod = popover.replace(/..\/..\//g, "carbon-components/scss/");
fs.writeFileSync("css/_popover.scss", popover_mod);
const scss = fs const scss = fs
.readdirSync("css") .readdirSync("css")
.filter((file) => file.endsWith(".scss")) .filter((file) => file.endsWith(".scss"))