-
-
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
Import css fail when using npm link #624
Labels
Comments
I finally figured this out myself. My config now looks like this: const path = require('path');
module.exports = {
module: {
loaders: [
{
test: /\.css$/,
loaders: ['style', 'css?sourceMap'],
},
]
}
} |
This was referenced Jan 22, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to import css from a local library using
npm link
. When I do this I get an error when trying to run the storybook.Error: https://gist.github.com/thalseth/267655ff5707c896204e70b8b37eed36
I am using the default configuration that supports css imports.
My import:
import 'my-style/build/styleguide.css';
When I copy it locally everything works fine.
import './styleguide.css';
Any help is much appreciated! :)
I created a repo with example code that you can run to see the issue:
https://github.com/thalseth/css-link-import-storybook
The text was updated successfully, but these errors were encountered: