Skip to content

Commit

Permalink
fix(webpack): resolve modules to rootDir
Browse files Browse the repository at this point in the history
This patch fixes support for npm linked libraries.

More information can be found at angular/angular-cli#2291
  • Loading branch information
fiznool authored Nov 11, 2016
1 parent 6f5d444 commit 0128059
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ module.exports = {
devtool: getDevtool(),

resolve: {
extensions: ['.js', '.ts', '.json']
extensions: ['.js', '.ts', '.json'],
modules: [path.resolve('{{ROOT}}', 'node_modules')]
},

module: {
Expand All @@ -82,4 +83,4 @@ module.exports = {
net: 'empty',
tls: 'empty'
}
};
};

0 comments on commit 0128059

Please sign in to comment.