Add node_modules as first path to resolve in webpack.config.js
This commit is contained in:
parent
0206859040
commit
bdd3986cba
1 changed files with 2 additions and 2 deletions
|
@ -35,13 +35,13 @@ Use debian packaged node modules when available
|
|||
- extensions: ['.js', '.gql', '.graphql'],
|
||||
- modules: ['/usr/share/gitlab/node_modules','/usr/share/gitlab/node_modules/mermaid/node_modules', '/usr/lib/nodejs'],
|
||||
+ extensions: ['.js', '.gql', '.graphql', '.json'],
|
||||
+ modules: ['/var/lib/gitlab/node_modules','/usr/share/gitlab/vendor/node_modules','/usr/share/gitlab/node_modules/mermaid/node_modules', '/usr/share/nodejs/markdown-it/node_modules/', '/usr/lib/nodejs', '/usr/share/nodejs'],
|
||||
+ modules: ['node_modules','/var/lib/gitlab/node_modules','/usr/share/gitlab/vendor/node_modules','/usr/share/gitlab/node_modules/mermaid/node_modules', '/usr/share/nodejs/markdown-it/node_modules/', '/usr/lib/nodejs', '/usr/share/nodejs'],
|
||||
alias,
|
||||
},
|
||||
|
||||
resolveLoader: {
|
||||
- modules: ['/usr/share/gitlab/node_modules', '/usr/lib/nodejs'],
|
||||
+ modules: ['/var/lib/gitlab/node_modules', '/usr/lib/nodejs','/usr/share/nodejs'],
|
||||
+ modules: ['node_modules','/var/lib/gitlab/node_modules', '/usr/lib/nodejs','/usr/share/nodejs'],
|
||||
},
|
||||
|
||||
module: {
|
||||
|
|
Loading…
Reference in a new issue