We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99c518c commit 16a891eCopy full SHA for 16a891e
lib/generators/react/install_generator.rb
@@ -18,8 +18,8 @@ class InstallGenerator < ::Rails::Generators::Base
18
19
# For Shakapacker below version 7, we need to set relative path for source_entry_path
20
def modify_webpacker_yml
21
- if webpacker?
22
- webpacker_yml_path = 'config/webpacker.yml'
+ webpacker_yml_path = 'config/webpacker.yml'
+ if webpacker? && Pathname.new(webpacker_yml_path).exist?
23
gsub_file(
24
webpacker_yml_path,
25
"source_entry_path: /\n",
0 commit comments