The Open Standard for Generative UI
create index.css in dist/styles
abhishekb76f989ef454
diff --git a/js/packages/react-ui/cp-css.js b/js/packages/react-ui/cp-css.jsindex ff68261b8..bc429a9f0 100644--- a/js/packages/react-ui/cp-css.js+++ b/js/packages/react-ui/cp-css.js@@ -21,6 +21,7 @@ function copyCssFiles() {// Read all component directoriesconst components = fs.readdirSync(srcDir);+ let indexCSSContent = ''components.forEach((component) => {const componentSrcPath = path.join(srcDir, component);@@ -34,11 +35,14 @@ function copyCssFiles() {const stylePath = path.join(componentSrcPath, componentStylesheetName);const distFile = path.join(distDir, componentStylesheetName);if (fs.existsSync(stylePath)) {+ const content = fs.readFileSync(stylePath, "utf8").replaceAll('\n', '');+ indexCSSContent += content;fs.copyFileSync(stylePath, distFile);} else {console.warn(`No stylesheet found for ${component}`);}});+ fs.writeFileSync(path.join(distDir, "index.css"), indexCSSContent);}try {