Skip to content

Commit

Permalink
fix env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Sep 23, 2016
1 parent 3bc5890 commit e60ca71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ for (var i = 0; i < args.length; i++) {
break;
}
}
process.env.INSTRUMENT_HEIMDALL = INSTRUMENT_HEIMDALL;

module.exports = function(defaults) {
var app = new EmberAddon(defaults, {
Expand All @@ -30,6 +29,7 @@ module.exports = function(defaults) {
});

if (INSTRUMENT_HEIMDALL) {
console.warn('IMPORTED HEIMDALL & SET EMBER TO PRODUCTION');
var heimdallTree = new Funnel('node_modules/heimdalljs', {
destDir: 'heimdalljs'
});
Expand Down
4 changes: 3 additions & 1 deletion lib/stripped-build-plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = function(environment) {
})
];

if (process.env.INSTRUMENT_HEIMDALL === false) {
if (process.env.INSTRUMENT_HEIMDALL === 'false') {
plugins.push(
stripHeimdall,
filterImports({
Expand All @@ -33,6 +33,8 @@ module.exports = function(environment) {
]
})
);
} else {
console.warn('NOT STRIPPING HEIMDALL');
}

if (environment === 'production') {
Expand Down

0 comments on commit e60ca71

Please sign in to comment.