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

Commit

Permalink
fix(webpack): resolve modules to rootDir (#365)
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 and danbucholtz committed Nov 18, 2016
1 parent 316b1de commit 64eb845
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 @@ -62,7 +62,8 @@ module.exports = {
devtool: getDevtool(),

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

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

0 comments on commit 64eb845

Please sign in to comment.