From 012805967dea47010c04782bb84d67b96dcd0b23 Mon Sep 17 00:00:00 2001 From: Tom Spencer Date: Fri, 11 Nov 2016 11:48:07 +0000 Subject: [PATCH] fix(webpack): resolve modules to rootDir This patch fixes support for npm linked libraries. More information can be found at https://github.com/angular/angular-cli/pull/2291 --- config/webpack.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/webpack.config.js b/config/webpack.config.js index 00c04ffd..75b80f76 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -61,7 +61,8 @@ module.exports = { devtool: getDevtool(), resolve: { - extensions: ['.js', '.ts', '.json'] + extensions: ['.js', '.ts', '.json'], + modules: [path.resolve('{{ROOT}}', 'node_modules')] }, module: { @@ -82,4 +83,4 @@ module.exports = { net: 'empty', tls: 'empty' } -}; \ No newline at end of file +};