-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Webpack 2] Doesn't seem to work with other loaders #2
Comments
Actually it's just css-loader causing a problem - it also is incompatible with postcss-loader right now apparently. |
Since Have you taken a look at the "Usage with other CSS loaders" section of the documentation? |
This isn't accurate - css-loader just interprets @import and url() rules within css files, allowing you to link css files together. You are thinking of style-loader that loads CSS into <style> tags. css-loader has be used with another loader, so I believe it should actually be compatible with css-object-loader! |
Actually sorry - I was inaccurate there too. css-loader also (optionally) rewrites class names and exports them. So yeah it possibly isn't so useful with css-object-loader, although maybe handling url() inside css is still a valid case? |
Ahh you're right I was thinking of For handling |
I've tried with both css-loader and postcss-loader; my Webpack config is as follows:
Error as follows:
If I take out postcss-loader so css-loader is piping straight into css-object-loader, I get this:
I assume this is because of Webpack 2?
The text was updated successfully, but these errors were encountered: