Skip to content

Commit 6aea114

Browse files
committed
Remove the function to correct misconfiguration in webpacker.yml
1 parent f02d973 commit 6aea114

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

lib/generators/react/install_generator.rb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,6 @@ class InstallGenerator < ::Rails::Generators::Base
1818
default: false,
1919
desc: "Don't generate server_rendering.js or config/initializers/react_server_rendering.rb"
2020

21-
# For Shakapacker below version 7, we need to set relative path for source_entry_path
22-
def modify_webpacker_yml
23-
webpacker_yml_path = "config/webpacker.yml"
24-
return unless webpacker? && Pathname.new(webpacker_yml_path).exist?
25-
26-
gsub_file(
27-
webpacker_yml_path,
28-
"source_entry_path: /\n",
29-
"source_entry_path: packs\n"
30-
)
31-
reloaded_webpacker_config
32-
end
33-
3421
# Make an empty `components/` directory in the right place:
3522
def create_directory
3623
components_dir = if webpacker?

0 commit comments

Comments
 (0)