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;
|
let discoursePluginsTree;
|
||||||
if (process.env.EMBER_CLI_PLUGIN_ASSETS === "1") {
|
if (process.env.EMBER_CLI_PLUGIN_ASSETS !== "0") {
|
||||||
discoursePluginsTree = app.project
|
discoursePluginsTree = app.project
|
||||||
.findAddonByName("discourse-plugins")
|
.findAddonByName("discourse-plugins")
|
||||||
.generatePluginsTree();
|
.generatePluginsTree();
|
||||||
|
|
|
@ -381,7 +381,7 @@ module.exports = {
|
||||||
if (shouldLoadPluginTestJs() && type === "test-plugin-js") {
|
if (shouldLoadPluginTestJs() && type === "test-plugin-js") {
|
||||||
const scripts = [];
|
const scripts = [];
|
||||||
|
|
||||||
if (process.env.EMBER_CLI_PLUGIN_ASSETS === "1") {
|
if (process.env.EMBER_CLI_PLUGIN_ASSETS !== "0") {
|
||||||
const pluginInfos = this.app.project
|
const pluginInfos = this.app.project
|
||||||
.findAddonByName("discourse-plugins")
|
.findAddonByName("discourse-plugins")
|
||||||
.pluginInfos();
|
.pluginInfos();
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
module EmberCli
|
module EmberCli
|
||||||
def self.plugin_assets?
|
def self.plugin_assets?
|
||||||
ENV["EMBER_CLI_PLUGIN_ASSETS"] == "1"
|
ENV["EMBER_CLI_PLUGIN_ASSETS"] != "0"
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.assets
|
def self.assets
|
||||||
|
|
Loading…
Reference in New Issue