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

Commit d3346b3

Browse files
committed
fix(webpack): make ionic-angular/util dir dynamic and use the environment variable of ionic angular
make ionic-angular/util dir dynamic and use the environment variable of ionic angular dir
1 parent f83ca43 commit d3346b3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/webpack/ionic-environment-plugin.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { join } from 'path';
2-
import { getParsedDeepLinkConfig } from '../util/helpers';
2+
import * as Constants from '../util/constants';
3+
import { getParsedDeepLinkConfig, getStringPropertyValue } from '../util/helpers';
34
import { BuildContext , DeepLinkConfigEntry} from '../util/interfaces';
45
import { Logger } from '../logger/logger';
56
import { getInstance } from '../util/hybrid-file-system-factory';
@@ -21,7 +22,8 @@ export class IonicEnvironmentPlugin {
2122
return callback();
2223
}
2324

24-
const ngModuleLoaderDirectory = join('ionic-angular', 'util');
25+
const ionicAngularDir = getStringPropertyValue(Constants.ENV_VAR_IONIC_ANGULAR_DIR);
26+
const ngModuleLoaderDirectory = join(ionicAngularDir, 'util');
2527
if (!result.resource.endsWith(ngModuleLoaderDirectory)) {
2628
return callback(null, result);
2729
}

0 commit comments

Comments
 (0)