DEV: Make Ember CLI assets the default in production (#15861)

This was reverted in e92f57255de429fcf12c4259235d88c5485d934f due to memory usage concerns. This memory issue was resolved by 4cceb55621aa5a25c72415d78a43bd62be68d68d.
This commit is contained in:
David Taylor
2022-02-08 10:03:53 +00:00
committed by GitHub
parent 7afe768d60
commit ecc07fd8dc
3 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@ task 'assets:precompile:before' do
require 'sprockets'
require 'digest/sha1'
if ENV['EMBER_CLI_PROD_ASSETS'] == "1"
if ENV['EMBER_CLI_PROD_ASSETS'] != "0"
# Remove the assets that Ember CLI will handle for us
Rails.configuration.assets.precompile.reject! do |asset|
asset.is_a?(String) &&
@ -312,7 +312,7 @@ end
task 'assets:precompile' => 'assets:precompile:before' do
copy_ember_cli_assets if ENV['EMBER_CLI_PROD_ASSETS'] == '1'
copy_ember_cli_assets if ENV['EMBER_CLI_PROD_ASSETS'] != '0'
refresh_days = GlobalSetting.refresh_maxmind_db_during_precompile_days