Remove addition of node_modules to Rails.application.config.assets.paths
justin808 opened this issue · 1 comments
justin808 commented
This change added to v6 is probably no longer necessary. Instead, we can probably document why one would do this.
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
justin808 commented