From 64eb845b7ab9bd46b4c9dcb088a9d70f14169a4a Mon Sep 17 00:00:00 2001 From: Tom Spencer Date: Fri, 18 Nov 2016 15:18:14 +0000 Subject: [PATCH] fix(webpack): resolve modules to rootDir (#365) 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 1fca26b4..606bc3fc 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -62,7 +62,8 @@ module.exports = { devtool: getDevtool(), resolve: { - extensions: ['.js', '.ts', '.json'] + extensions: ['.js', '.ts', '.json'], + modules: [path.resolve('{{ROOT}}', 'node_modules')] }, module: { @@ -83,4 +84,4 @@ module.exports = { net: 'empty', tls: 'empty' } -}; \ No newline at end of file +};