From 7df62479f77d04694a0cf14e1ba0a4f8605a1037 Mon Sep 17 00:00:00 2001 From: Abe Voelker Date: Sun, 28 Aug 2022 12:59:37 -0500 Subject: [PATCH] Warn when precompiling assets in development (#102) --- lib/propshaft/railties/assets.rake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/propshaft/railties/assets.rake b/lib/propshaft/railties/assets.rake index a6160a6..977000d 100644 --- a/lib/propshaft/railties/assets.rake +++ b/lib/propshaft/railties/assets.rake @@ -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"