From 39aef664e585f7257abe04a4d9d30930151e4e83 Mon Sep 17 00:00:00 2001 From: Eric Horodyski Date: Tue, 24 Jan 2017 14:36:24 -0500 Subject: [PATCH] Alias environment specific module (to change API keys, constants in code across environments). --- config/webpack.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/webpack.config.js b/config/webpack.config.js index 91b0f99d..71513561 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -14,7 +14,9 @@ module.exports = { resolve: { extensions: ['.ts', '.js', '.json'], - modules: [path.resolve('node_modules')] + alias: { + "@app/config": path.resolve('./src/config/config.' + process.env.IONIC_ENV + '.ts') + } }, module: {