You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have added Less imports to some of my components, but the CSS files generated by webpack are included globally in the of the site for all components. From the documentation, it seems like CSS should be isolated to each component by default, so I'm not sure what the issue is. Any suggestions on how to isolate styles per component/story?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have added Less imports to some of my components, but the CSS files generated by webpack are included globally in the of the site for all components. From the documentation, it seems like CSS should be isolated to each component by default, so I'm not sure what the issue is. Any suggestions on how to isolate styles per component/story?
Ver: Storybook 6.2.9
Main.js (less-loader):
stories/component.stories.js:
stories/component-2.stories.js:
This results in all LESS files being converted to CSS and added to the section of the site. They do not load separately per story.
If I missed any info, please lmk. Thanks :)
Beta Was this translation helpful? Give feedback.
All reactions