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 f02d973 commit 6aea114Copy full SHA for 6aea114
lib/generators/react/install_generator.rb
@@ -18,19 +18,6 @@ class InstallGenerator < ::Rails::Generators::Base
18
default: false,
19
desc: "Don't generate server_rendering.js or config/initializers/react_server_rendering.rb"
20
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
34
# Make an empty `components/` directory in the right place:
35
def create_directory
36
components_dir = if webpacker?
0 commit comments