diff --git a/config/initializers/000-development_reload_warnings.rb b/config/initializers/000-development_reload_warnings.rb index fa93c8ff5a5..f92ab6dd6ee 100644 --- a/config/initializers/000-development_reload_warnings.rb +++ b/config/initializers/000-development_reload_warnings.rb @@ -27,7 +27,7 @@ if Rails.env.development? && !Rails.configuration.cache_classes && Discourse.run end Listen - .to(*paths, only: /\.rb$/) do |modified, added, removed| + .to(*paths, only: /\.rb$/, ignore: [/node_modules/]) do |modified, added, removed| supervisor_pid = UNICORN_DEV_SUPERVISOR_PID auto_restart = supervisor_pid && ENV["AUTO_RESTART"] != "0"