mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
FIX: Update application_helper logic now that Ember CLI is default (#15935)
Followup to a01b1dd648
This commit is contained in:
parent
7ed899fed9
commit
f078d1ab0a
@ -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] }
|
||||
|
Loading…
Reference in New Issue
Block a user