mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 08:43:25 +08:00
DEV: Enable ember-cli plugin assets by default (#18058)
For now, `EMBER_CLI_PLUGIN_ASSETS` can be set to 0 to restore the old behavior. This option will be removed very soon.
This commit is contained in:
parent
9685852a1f
commit
b175513765
|
@ -146,7 +146,7 @@ module.exports = function (defaults) {
|
|||
);
|
||||
|
||||
let discoursePluginsTree;
|
||||
if (process.env.EMBER_CLI_PLUGIN_ASSETS === "1") {
|
||||
if (process.env.EMBER_CLI_PLUGIN_ASSETS !== "0") {
|
||||
discoursePluginsTree = app.project
|
||||
.findAddonByName("discourse-plugins")
|
||||
.generatePluginsTree();
|
||||
|
|
|
@ -381,7 +381,7 @@ module.exports = {
|
|||
if (shouldLoadPluginTestJs() && type === "test-plugin-js") {
|
||||
const scripts = [];
|
||||
|
||||
if (process.env.EMBER_CLI_PLUGIN_ASSETS === "1") {
|
||||
if (process.env.EMBER_CLI_PLUGIN_ASSETS !== "0") {
|
||||
const pluginInfos = this.app.project
|
||||
.findAddonByName("discourse-plugins")
|
||||
.pluginInfos();
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
module EmberCli
|
||||
def self.plugin_assets?
|
||||
ENV["EMBER_CLI_PLUGIN_ASSETS"] == "1"
|
||||
ENV["EMBER_CLI_PLUGIN_ASSETS"] != "0"
|
||||
end
|
||||
|
||||
def self.assets
|
||||
|
|
Loading…
Reference in New Issue
Block a user