-
-
Notifications
You must be signed in to change notification settings - Fork 631
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
Follow-up to #1606 #1611
Follow-up to #1606 #1611
Conversation
@@ -99,7 +99,7 @@ def add_yarn_dependencies | |||
css_minimizer_webpack_plugin_version = node_major_version >= 18 ? "" : "@<6.0.0" | |||
css_minimizer_webpack_plugin = "css-minimizer-webpack-plugin#{css_minimizer_webpack_plugin_version}" | |||
|
|||
run "yarn add 'css-loader@<7.0.0' '#{css_minimizer_webpack_plugin}' mini-css-extract-plugin style-loader" | |||
run "yarn add 'css-loader@<7.0.0' '#{css_minimizer_webpack_plugin}' mini-css-extract-plugin 'style-loader@<4.0.0'" # rubocop:disable Layout/LineLength |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see why we're locking this:
https://github.com/webpack-contrib/style-loader/releases
New projects can update or change the dependency if needed.
@Judahmeek let's just update the node version for the tests. If new generated projects need a newer node version or older style-loader, that's fine. |
e85670e
to
0f49f8d
Compare
0f49f8d
to
e20c6eb
Compare
react_on_rails.gemspec
Outdated
@@ -29,6 +29,7 @@ Gem::Specification.new do |s| | |||
s.add_dependency "addressable" | |||
s.add_dependency "connection_pool" | |||
s.add_dependency "execjs", "~> 2.5" | |||
s.add_dependency "sqlite3", "~> 1.6" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why make this a dependency? it is needed for tests only?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct. My mistake.
This PR adds lock files for the changes made in #1606 & also restricts the version of
style-loader
in rspec examples (style-loader
v4 requires a higher version of node than we are currently using) so that CI will pass.This change is