mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +08:00
DEV: Disable the use of 'legacy' Ember assets (#17127)
Anyone still using `EMBER_CLI_PROD_ASSETS=0` in development or production will be gracefully switched to Ember CLI. In development, a repeated message will be logged to STDERR. Similarly, passing `QUNIT_EMBER_CLI=0` to the qunit rake task will now do nothing. A warning will be printed, and ember-cli mode will be used. Note that we've chosen not to fail the task, so that existing plugin/theme CI jobs don't immediately start failing. We may switch to a hard fail in the coming days/weeks.
This commit is contained in:
@ -17,7 +17,10 @@ module EmberCli
|
||||
}
|
||||
|
||||
def self.enabled?
|
||||
ENV["EMBER_CLI_PROD_ASSETS"] != "0"
|
||||
if !Rails.env.production? && ENV["EMBER_CLI_PROD_ASSETS"] == "0"
|
||||
STDERR.puts "The 'legacy' ember environment is discontinued. Running with ember-cli assets. Remove the EMBER_CLI_PROD_ASSETS=0 flag."
|
||||
end
|
||||
true
|
||||
end
|
||||
|
||||
def self.script_chunks
|
||||
|
Reference in New Issue
Block a user