Skip to content

Commit

Permalink
Auto merge of #6715 - status200:build-console-output-fix, r=rwjblue
Browse files Browse the repository at this point in the history
Fix build console output when using environment variable

Resolves #6642
  • Loading branch information
homu committed Jan 25, 2017
2 parents 385bf36 + da26338 commit 0d992ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/commands/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ module.exports = Command.extend({
return Win.checkIfSymlinksNeedToBeEnabled(this.ui).then(() => {
let buildTaskName = commandOptions.watch ? 'BuildWatch' : 'Build';
return this.runTask(buildTaskName, commandOptions).then(() => {
if (!commandOptions.suppressSizes && commandOptions.environment === 'production') {
let isProduction = commandOptions.environment === 'production' || process.env.EMBER_ENV === 'production';
if (!commandOptions.suppressSizes && isProduction) {
return showTask.run({
outputPath: commandOptions.outputPath,
});
Expand Down

0 comments on commit 0d992ff

Please sign in to comment.