Skip to content

Commit

Permalink
Restrict css-minimizer-webpack-plugin version below 6 in the generator
Browse files Browse the repository at this point in the history
  • Loading branch information
ahangarha committed Jan 21, 2024
1 parent b356271 commit 12a91c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/generators/react_on_rails/base_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def add_yarn_dependencies
babel-plugin-macros"

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+
run "yarn add css-loader 'css-minimizer-webpack-plugin@<6.0.0' mini-css-extract-plugin style-loader"

puts "Adding dev dependencies"
run "yarn add -D @pmmmwh/react-refresh-webpack-plugin react-refresh"
Expand Down

0 comments on commit 12a91c9

Please sign in to comment.