We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
npm link
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:
I finally figured this out myself. The solution was to remove the include in the custom css loader 🎆
My config now looks like this:
const path = require('path'); module.exports = { module: { loaders: [ { test: /\.css$/, loaders: ['style', 'css?sourceMap'], }, ] } }
Sorry, something went wrong.
No branches or pull requests
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: