-
Notifications
You must be signed in to change notification settings - Fork 50
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 add styles #31
Comments
Hey @greygatch - I don't think it's this boilerplate's fault. You're only using a SCSS loader but you also need the CSS loader and the Style loader. The SCSS loader only converts SCSS to CSS, but webpack still needs to be able to read CSS. |
Thanks for replying Joseph, and yep that sounds like the problem
…On Mon, 31 Jul 2017 at 15:29, Joseph Turbin ***@***.***> wrote:
Hey @greygatch <https://github.com/greygatch> - I don't think it's this
library's fault. You're only using a SCSS loader but you also need the CSS
loader and the Style loader. The SCSS loader only converts SCSS to CSS, but
webpack still needs to be able to read CSS.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#31 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAuZ-mNcZiEqB_d5DW5FYOmsajh5az6zks5sTeTYgaJpZM4OguVG>
.
|
I don't understand. Am I not chaining the loaders together and using all three?
This is an old style to use multiple loaders, but it is supported. |
Hm yeah I replied via email and didn't see the original post, looks correct so I'm not sure where the problem is, but there's nothing specific in this repo preventing it. What's more likely is that this is the Node process encountering the scss import and Node doesn't know what to do with it. Try adding at the top of server.js: require.extensions['.scss'] = () => {}; |
@greygatch Yep. My bad. I don't know how I didn't see that chain. |
@jturbo26 Just to make sure it didn't break with the new webpack release, I updated it to the new way. Maybe it has something to do with the universal rendering?
|
I don't think it's the universal rendering because I was able to get css to load. Are you sure you've installed all your loaders with npm install? I don't use SASS, but I was able to get CSS modules working very easily. Here's part of my webpack config to compare.
|
This project is apparently unable to allow for the addition of CSS modules via webpack
The text was updated successfully, but these errors were encountered: