debian-mirror-gitlab/debian/patches/0520-add-system-lib-path-for-webpack.patch
2019-12-04 21:09:36 +05:30

17 lines
445 B
Diff

--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -127,9 +127,14 @@
resolve: {
extensions: ['.js', '.gql', '.graphql'],
+ modules: ['/usr/share/gitlab/node_modules','/usr/share/gitlab/node_modules/mermaid/node_modules', '/usr/lib/nodejs'],
alias,
},
+ resolveLoader: {
+ modules: ['/usr/share/gitlab/node_modules', '/usr/lib/nodejs'],
+ },
+
module: {
strictExportPresence: true,
rules: [