Skip to content

Commit

Permalink
Warn when precompiling assets in development
Browse files Browse the repository at this point in the history
  • Loading branch information
abevoelker committed Aug 6, 2022
1 parent 467f2a1 commit cee6aa2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/propshaft/railties/assets.rake
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ namespace :assets do
desc "Compile all the assets from config.assets.paths"
task precompile: :environment do
Rails.application.assets.processor.process
if Rails.env.development?
puts "Warning: You are precompiling assets in development. Rails will not " \
"serve any changed assets until you delete public/assets/.manifest.json"
end
end

desc "Remove config.assets.output_path"
Expand Down

0 comments on commit cee6aa2

Please sign in to comment.