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

This can be disabled by setting `EMBER_CLI_PROD_ASSETS=0`, but this option will not be available for long. If your theme/plugin/site has issues under Ember CLI, please open a topic on https://meta.discourse.org
This commit is contained in:
David Taylor
2022-02-07 15:25:57 +00:00
committed by GitHub
parent ea2fd75d10
commit 1b622667bc
4 changed files with 5 additions and 5 deletions

View File

@@ -138,7 +138,7 @@ module ApplicationHelper
def preload_vendor_scripts
scripts = ["vendor"]
if ENV["EMBER_CLI_PROD_ASSETS"] == "1"
if ENV["EMBER_CLI_PROD_ASSETS"] != "0"
@@vendor_chunks ||= begin
all_assets = ActionController::Base.helpers.assets_manifest.assets
all_assets.keys.filter_map { |name| name[/\A(chunk\..*)\.js\z/, 1] }