From 7223d77058d0a2b1cf1c9bff178b0615f563b7cf Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Wed, 17 Feb 2021 10:16:54 +0100 Subject: [PATCH] Remove unused paths from assets pipeline --- config/initializers/assets.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb index df78f48c1..c97536ee3 100644 --- a/config/initializers/assets.rb +++ b/config/initializers/assets.rb @@ -5,11 +5,10 @@ Rails.application.config.assets.version = '1.0' # Add additional assets to the asset load path Rails.application.config.assets.paths << Rails.root.join('node_modules', 'trix', 'dist') -Rails.application.config.assets.paths << Rails.root.join('node_modules', 'select2', 'dist', 'css') Rails.application.config.assets.paths << Rails.root.join('node_modules', 'mapbox-gl', 'dist') Rails.application.config.assets.paths << Rails.root.join('node_modules', '@reach', 'combobox') Rails.application.config.assets.paths << Rails.root.join('node_modules', '@mapbox', 'mapbox-gl-draw', 'dist') # Precompile additional assets. # application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -Rails.application.config.assets.precompile += ['print.css', 'new_design/new_application.css', 'new_design/print.css', 'new_design/application.js', 'new_design/manager.css'] +Rails.application.config.assets.precompile += ['print.css']