From ce560fbf2dd8fe6ca2558b2c02f68b48253b4ae9 Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Thu, 1 Aug 2024 06:19:31 +0000 Subject: [PATCH] Upgrade to latest sprockets --- app/assets/config/manifest.js | 4 ++++ config/application.rb | 5 ----- config/initializers/assets.rb | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 app/assets/config/manifest.js diff --git a/app/assets/config/manifest.js b/app/assets/config/manifest.js new file mode 100644 index 000000000..6c8399641 --- /dev/null +++ b/app/assets/config/manifest.js @@ -0,0 +1,4 @@ + //= link_tree ../images + //= link_directory ../javascripts .js + //= link_directory ../stylesheets .css + \ No newline at end of file diff --git a/config/application.rb b/config/application.rb index d7f561cc6..7d8196ee9 100644 --- a/config/application.rb +++ b/config/application.rb @@ -51,11 +51,6 @@ class Application < Rails::Application config.exceptions_app = routes - # Precompile additional assets. - # application.js, application.css, and all non-JS/CSS in app/assets folder are already added. - # TODO: Move this to config/initializers/assets.rb as is the latest way - config.assets.precompile += %w[tailwind.css administrate_pill.css bar_graph.js] - config.assets.css_compressor = SkippingSassCompressor.new # Application configuration diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb index 56dc6ad90..223eca07c 100644 --- a/config/initializers/assets.rb +++ b/config/initializers/assets.rb @@ -10,4 +10,4 @@ # Precompile additional assets. # application.js, application.css, and all non-JS/CSS in the app/assets # folder are already added. -# Rails.application.config.assets.precompile += %w( admin.js admin.css ) +Rails.application.config.assets.precompile += %w(tailwind.css)