-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
use storybook with vue and css preprocessor #1572
Comments
You should import the file, and then add a loader by customizing the webpack config: |
I use it and setting the webpack. Now It can understand stylus file.
I have used url-loader in webpack.config like project setting but still doen't work.
I have use the bootstrap in my global setting. It works in my project but here can't work. Please help me to resolve it... Thanks! |
The problem seems to be there's no '../node_modules/bootstrap/dist/css/bootstrap.min.css' file relative to the Since it appears to be in If the CSS file is static you may also add it to the preview-head. |
I think I can fixed the problem about path.. Thanks.
I have already set the webpack as following:
But it still doen't work. Any idea..? Thanks! |
My idea is the path to the file is wrong 😆 Looks like it should be |
I'll close this issue, as I think the remaining problems are not really 'Storybook for Vue'-related. Feel free to re-open if you disagree or find a bug! |
I face some problem with css preprocessor.
I have import global.styl in my project. How do I use it in storybook ..?
I can't import stylus file directly in here. like:
import '../assets/css/global.styl'
The text was updated successfully, but these errors were encountered: