Conversation
|
|
||
| puts "Adding CSS handlers" | ||
| run "yarn add css-loader css-minimizer-webpack-plugin mini-css-extract-plugin style-loader" | ||
| # css-minimizer-webpack-plugin v6.0.0 requires Node 18+ |
There was a problem hiding this comment.
This is 100% the wrong thing to do. We should not be doing things like this to fix testing...Instead, just take Node 16 out of the test matrix.
We're not requiring an update to Node. Node 16 should still work with React on Rails.
Please confirm that the error is easy to debug if somebody uses the generator with old Node.
There was a problem hiding this comment.
@ahangarha you could actually make the version of css-minimizer-webpack-plugin installed conditional on the version of node that is being used.
Have the generator check the result of node -v & then install the latest version of css-minimizer-webpack-plugin compatible with that node version.
|
I close this PR regarding this comment. The required change is applied in #1592 |
Summary
Recently
css-minimizer-webpack-pluginreleased v6.0.0 in which the minimum required Node version is 18.We install this package in our generator, and we need this PR to ensure our generator doesn't break in an environment with an older Node.
Alternatively, we can bump our Nodejs support to v18 (the current LTS)I have change the generator so that it limits the version of this package unless we use Node v18+.
Pull Request checklist
Add/update test to cover these changesUpdate documentationUpdate CHANGELOG fileOther Information
This change is