rails/webpacker

Remove addition of node_modules to Rails.application.config.assets.paths

justin808 opened this issue · 1 comments

This change added to v6 is probably no longer necessary. Instead, we can probably document why one would do this.

47b1e06

if (asset_config_path = Rails.root.join("config/initializers/assets.rb")).exist?
  say "Add node_modules to the asset load path"
  append_to_file asset_config_path, <<-RUBY
# Add node_modules folder to the asset load path.
Rails.application.config.assets.paths << Rails.root.join("node_modules")
RUBY
end