Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Commit

Permalink
fix(webpack): make ionic-angular/util dir dynamic and use the environ…
Browse files Browse the repository at this point in the history
…ment variable of ionic angular

make ionic-angular/util dir dynamic and use the environment variable of ionic angular dir
  • Loading branch information
danbucholtz committed Apr 18, 2017
1 parent f83ca43 commit d3346b3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/webpack/ionic-environment-plugin.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { join } from 'path';
import { getParsedDeepLinkConfig } from '../util/helpers';
import * as Constants from '../util/constants';
import { getParsedDeepLinkConfig, getStringPropertyValue } from '../util/helpers';
import { BuildContext , DeepLinkConfigEntry} from '../util/interfaces';
import { Logger } from '../logger/logger';
import { getInstance } from '../util/hybrid-file-system-factory';
Expand All @@ -21,7 +22,8 @@ export class IonicEnvironmentPlugin {
return callback();
}

const ngModuleLoaderDirectory = join('ionic-angular', 'util');
const ionicAngularDir = getStringPropertyValue(Constants.ENV_VAR_IONIC_ANGULAR_DIR);
const ngModuleLoaderDirectory = join(ionicAngularDir, 'util');
if (!result.resource.endsWith(ngModuleLoaderDirectory)) {
return callback(null, result);
}
Expand Down

0 comments on commit d3346b3

Please sign in to comment.