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 an issue with starting storybook for a subproject in my angular app.
The main app contains an admin application like this. I've got the following folder structure:
They share the same angular.json and the admin is defined there. The default application is also set.
I have all my stories in a shared folder in the main app. The admin project uses angular material. I needed to
import my material theme '!style-loader!css-loader!sass-loader!./styles.scss'; in preview.js to make the styles work.
Currently when I start storybook it loads all stories from main-app and admin, even when I start sb for admin like #12565 .
Now how can I start sb only for admin and only the admin stories shown? How should I manage the styles import to make material work for 2 different apps?
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
-
Hey,
I have an issue with starting storybook for a subproject in my angular app.

The main app contains an admin application like this. I've got the following folder structure:
They share the same angular.json and the admin is defined there. The default application is also set.
I have all my stories in a shared folder in the main app. The admin project uses angular material. I needed to
import my material theme '!style-loader!css-loader!sass-loader!./styles.scss'; in preview.js to make the styles work.
Currently when I start storybook it loads all stories from main-app and admin, even when I start sb for admin like #12565 .
Now how can I start sb only for admin and only the admin stories shown? How should I manage the styles import to make material work for 2 different apps?
Beta Was this translation helpful? Give feedback.
All reactions