mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue