You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
because Sprockets throws an error when "manifest" is missing, it's impossible to compile assets, and then delete the source folder. this is a really bad direction for people who use services like heroku, where speed is dependent on post-compiled app size. I shouldn't need to keep my source files after they've been compiled, just to start my server
The text was updated successfully, but these errors were encountered:
If you want to remove the assets folder you need to find and remove any config options that reference assets (example from development.rb: config.assets.quiet = true), and then in application.rb, instead of requiring all of the rails libraries with require "rails/all", replace it with something like the following:
%w(
active_record/railtie
active_storage/engine
action_controller/railtie
action_view/railtie
action_mailer/railtie
active_job/railtie
action_cable/engine
action_mailbox/engine
action_text/engine
rails/test_unit/railtie
- sprockets/railtie
).each do |railtie|
begin
require railtie
rescue LoadError
end
end
because Sprockets throws an error when "manifest" is missing, it's impossible to compile assets, and then delete the source folder. this is a really bad direction for people who use services like heroku, where speed is dependent on post-compiled app size. I shouldn't need to keep my source files after they've been compiled, just to start my server
The text was updated successfully, but these errors were encountered: