mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 03:51:07 +08:00
DEV: Remove support for legacy plugin JS compilation pipeline (#18293)
This became the default in b1755137
This commit is contained in:
@ -1,10 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module EmberCli
|
||||
def self.plugin_assets?
|
||||
ENV["EMBER_CLI_PLUGIN_ASSETS"] != "0"
|
||||
end
|
||||
|
||||
def self.assets
|
||||
@assets ||= begin
|
||||
assets = %w(
|
||||
@ -18,11 +14,9 @@ module EmberCli
|
||||
)
|
||||
assets += Dir.glob("app/assets/javascripts/discourse/scripts/*.js").map { |f| File.basename(f) }
|
||||
|
||||
if plugin_assets?
|
||||
Discourse.find_plugin_js_assets(include_disabled: true).each do |file|
|
||||
next if file.ends_with?("_extra") # these are still handled by sprockets
|
||||
assets << "#{file}.js"
|
||||
end
|
||||
Discourse.find_plugin_js_assets(include_disabled: true).each do |file|
|
||||
next if file.ends_with?("_extra") # these are still handled by sprockets
|
||||
assets << "#{file}.js"
|
||||
end
|
||||
|
||||
assets
|
||||
|
Reference in New Issue
Block a user