Skip to content

Conversation

@rossta
Copy link
Contributor

@rossta rossta commented Feb 18, 2021

Webpacker 6 will provide loader rules by default when css webpack
dependencies are detected. The custom loader rules were not set up
correctly to work with the rest of the webpack config.

Fixes rails/webpacker#2916 and makes your demo app CSS work
with Webpacker 6.

Webpacker 6 will provide loader rules by default when css webpack
dependencies are detected. The custom loader rules were not set up
correctly to work with the rest of the webpack config.

Fixes @rails/webpacker issue #2916
@rafath
Copy link
Owner

rafath commented Feb 18, 2021

Hey @rossta thanks for your reply - I've tested your solution and it did the trick ;). Thanks. Hovever after using recent libs (webpacker / webpack ) webpack-dev-server doesnt work properly - I mean despite webpack compiles js and css - I dont see any alert on site, even I had to set port to 3035 because it started by default on 8080, also hot reload doesnt work - after changing any js / css files - have to refresh site manually. Here are my changes: #4 - can you check it?

@rossta
Copy link
Contributor Author

rossta commented Feb 19, 2021

See #5

@rafath rafath merged commit 1bdb26f into rafath:master Feb 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rails 6.1, webpacker 6.x beta 5, cant import stylesheets in javascript file

2 participants