ember-welcome-page
Advanced tools
Comparing version 3.0.0 to 3.1.0
13
index.js
@@ -9,4 +9,5 @@ /* jshint node: true */ | ||
this._super.included(app); | ||
this._welcomeConfig = app.options['ember-welcome-page'] || {}; | ||
if (this._isProduction()) { return; } | ||
if (this._isDisabled()) { return; } | ||
@@ -17,3 +18,3 @@ app.import('vendor/welcome-page.css'); | ||
treeForPublic: function() { | ||
if (this._isProduction()) { return false; } | ||
if (this._isDisabled()) { return false; } | ||
@@ -26,3 +27,3 @@ var tree = this._super.treeForPublic.apply(this, arguments); | ||
treeForAddon: function() { | ||
if (this._isProduction()) { return false; } | ||
if (this._isDisabled()) { return false; } | ||
@@ -35,3 +36,3 @@ var tree = this._super.treeForAddon.apply(this, arguments); | ||
treeForApp: function() { | ||
if (this._isProduction()) { return false; } | ||
if (this._isDisabled()) { return false; } | ||
@@ -43,5 +44,5 @@ var tree = this._super.treeForApp.apply(this, arguments); | ||
_isProduction: function() { | ||
return process.env.EMBER_ENV === 'production'; | ||
_isDisabled: function() { | ||
return process.env.EMBER_ENV === 'production' && !this._welcomeConfig.enabled; | ||
} | ||
}; |
{ | ||
"name": "ember-welcome-page", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "Welcome page for Ember CLI applications", | ||
@@ -5,0 +5,0 @@ "directories": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
103912
280