Skip to content

Commit

Permalink
Upgrade to latest sprockets
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Aug 1, 2024
1 parent b19e59c commit ce560fb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 4 additions & 0 deletions app/assets/config/manifest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
//= link_tree ../images
//= link_directory ../javascripts .js
//= link_directory ../stylesheets .css

5 changes: 0 additions & 5 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit ce560fb

Please sign in to comment.