Skip to content

Commit

Permalink
Fix build console output when using environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mike183 authored and rwjblue committed Jan 25, 2017
1 parent 385bf36 commit da26338
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 da26338

Please sign in to comment.