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 1a7402c commit 9d55518Copy full SHA for 9d55518
lib/webpacker/railtie.rb
@@ -54,8 +54,10 @@ class Webpacker::Engine < ::Rails::Engine
54
55
initializer "webpacker.remove_app_packs_from_the_autoload_paths" do
56
Rails.application.config.before_initialize do
57
- source_path = Webpacker.config.source_path.to_s
58
- ActiveSupport::Dependencies.autoload_paths.delete(source_path)
+ if Webpacker.config.config_path.exist?
+ source_path = Webpacker.config.source_path.to_s
59
+ ActiveSupport::Dependencies.autoload_paths.delete(source_path)
60
+ end
61
end
62
63
0 commit comments