fix: add cssgen step to generate styles.css for Storybook
- Add 'npx @pandacss/dev cssgen' after panda codegen to generate the consolidated styles.css file - The styles.css file is required by Storybook preview.ts but was not being generated by panda codegen alone - Added error handling to allow CSS generation to continue despite warnings
This commit is contained in:
1
.github/workflows/deploy-storybook.yml
vendored
1
.github/workflows/deploy-storybook.yml
vendored
@@ -58,6 +58,7 @@ jobs:
|
||||
working-directory: apps/web
|
||||
run: |
|
||||
pnpm panda codegen
|
||||
npx @pandacss/dev cssgen || echo "CSS generation had warnings but continued"
|
||||
ls -la styled-system/
|
||||
echo "Generated CSS files:"
|
||||
ls -la styled-system/*.css || echo "No CSS files found"
|
||||
|
||||
Reference in New Issue
Block a user