debian-mirror-gitlab/debian/patches/0520-add-system-lib-path-for-webpack.patch
2018-12-13 16:52:04 +05:30

21 lines
567 B
Diff

--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -85,6 +85,7 @@
resolve: {
extensions: ['.js'],
+ modules: ['/usr/share/gitlab/node_modules','/usr/share/gitlab/node_modules/mermaid/node_modules', '/usr/lib/nodejs'],
alias: {
'~': path.join(ROOT_PATH, 'app/assets/javascripts'),
emojis: path.join(ROOT_PATH, 'fixtures/emojis'),
@@ -97,6 +98,10 @@
},
},
+ resolveLoader: {
+ modules: ['/usr/share/gitlab/node_modules', '/usr/lib/nodejs'],
+ },
+
module: {
strictExportPresence: true,
rules: [