-
-
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
Unable to extend my webpack config #2607
Comments
This might be what you need: |
@ndelangen thanks for the speedy response! That certainly looks like it would achieve what i'd be after, however i'm still experiencing the same error about needing a CSS loader after using that code aswell webpack.config.js
Error Again the CSS loads fine without that webpack.config.js E/ I've just done a bit more investigating, seems the CSS loader breaks even when I don't modify anything E.g
The log does actually return me a webpack config as expected
This alone is breaking my CSS loading |
the logged webpack config IS missing the css loaders.. |
@TomYeoman it is failing to load a
edit: missed your earlier comment. |
@TomYeoman, assuming you're using Material UI, wrapping the component in |
FWIW, this is how I managed to accomplish adding a loader to the default webpack config: https://gist.github.com/hollandmatt/eae06135edc5cbfa6668d99a5333cc53
|
Issue details
Storybook is saying I don't have a CSS loader after attempting to extend the webpack config to allow for SASS in addition to CSS. It seems my webpack is getting overritten rather than extended
Steps to reproduce
add .storybook/webpack.config.js with the following code
I've tried manually adding the cssLoader
const path = require("path");
But then recieve this new error
Please specify which version of Storybook and optionally any affected addons that you're running
Affected platforms
Windows 10
The text was updated successfully, but these errors were encountered: