-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@storybook/angular cannot load scss file on stories index #2994
Comments
@gpincheiraa, how does the |
The angular-cli project do this automatically for add the global styles through this file ( |
As far as I know angular-cli loads styles globally according to the "styles": [
"styles.css"
], from the Anyway if you want to load your |
@igor-dv , does it mean that the same approach but with scss isn't supported in the alpha.8 yet? |
I am not familiar with all the options of angular-cli, but If angular-cli supports this, probably it will work (I mean the |
@igor-dv you are right about Edit: It's work using the version |
👌 |
@gpincheiraa are you able to import the global scss file in storybook ? From your above comment i am having one doubt that it worked with global css or global scss. |
You can do it like is explained here: |
I have been trying to use storybook for my angular project and I use this guide https://storybook.js.org/basics/guide-angular/
I use the recommended config for webpack for sass loader for scss files and the scss file related to the project works fine, but if I import a scss file in the stories index.ts file, this file it is not loaded.
stories/index.ts
.storybook/webpack.config.js (recommended in here --> https://storybook.js.org/basics/guide-angular/#configure-style-rules)
And, the scss file for my component was loaded without problems
src/app/modules/ui-common/video-poster/video-poster.component.ts
Repository:
https://github.com/gpincheiraa/storybook-components-sample
run
npm install && npm run storybook
for check storybook running.What I am doing wrong??
The text was updated successfully, but these errors were encountered: