Skip to content

Commit

Permalink
Fix assets precompilation
Browse files Browse the repository at this point in the history
  • Loading branch information
smolnar committed Mar 21, 2024
1 parent ef5c913 commit d12c44e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions config/initializers/assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
# Version of your assets, change this if you want to expire all your assets.
Rails.application.config.assets.version = '1.0'

# Add additional assets to the asset load path
# Add additional assets to the asset load path.
# Rails.application.config.assets.paths << Emoji.images_path
Rails.application.config.assets.precompile += %w( application.css application.js )
# Add Yarn node_modules folder to the asset load path.
Rails.application.config.assets.paths << Rails.root.join('node_modules')

# 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 )

0 comments on commit d12c44e

Please sign in to comment.