-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Configure CSS Modules in Webpacker #368
Comments
I figured it out. I was missing the stylesheet_pack_tag. In my case it was<%= stylesheet_pack_tag 'index' %> |
How would I modify the new style loader to enable this now that Webpacker 3.0 is released and all of these configs no longer live inside The example given here is for modifying the babel loader, which in my opinion, is MUCH simpler than the styles loader. |
Please see this comment: #756 (comment) |
@gauravtiwari I'm trying to do something very similar but one of my node packages( Error
Code
Heres a similar issue with webpacker and these node packages - alphagov/govuk_elements#334 |
@danmitchell- How are you importing the |
I have a file called and and inside my app layout file I have |
Just checked, it's a problem with the package structure itself. The Perhaps, you wanna consider removing toolkit related @import '~govuk-elements-sass/public/sass/govuk-elements';
@import "~govuk_frontend_toolkit/stylesheets/base"; |
Okay, thanks @gauravtiwari |
How can I get the example to work with Rails 5.1 and webpacker?
The text was updated successfully, but these errors were encountered: