I correctly added the @storybook/addon-postcss to main.js, imported the tailwind css into the preview.js, so I expect to be able to build it and see the styles.
If I check the builded storybook, I can see that main.644e3a31.iframe.bundle.js has the tailwind css, so why is it not working?
Describe the bug
When I serve storybook, it shows the Tailwind styles correctly, but if I build it and then serve with
http-server
, then my components are unstyled.Steps to reproduce the behavior
npm install
npm run storybook
npm run build-storybook
npx http-server ./storybook/
Expected behavior
I correctly added the
@storybook/addon-postcss
tomain.js
, imported the tailwind css into thepreview.js
, so I expect to be able to build it and see the styles.If I check the builded storybook, I can see that
main.644e3a31.iframe.bundle.js
has the tailwind css, so why is it not working?