2020-04-13 13:49:04 +05:30
|
|
|
Debian specific patch to allow webpack to resolve packaged node modules
|
|
|
|
|
2017-09-04 10:08:05 +05:30
|
|
|
--- a/config/webpack.config.js
|
|
|
|
+++ b/config/webpack.config.js
|
2021-04-30 00:10:56 +05:30
|
|
|
@@ -189,9 +189,14 @@
|
2017-09-04 10:08:05 +05:30
|
|
|
|
|
|
|
resolve: {
|
2018-12-24 00:09:40 +05:30
|
|
|
extensions: ['.js', '.gql', '.graphql'],
|
2018-12-13 16:52:04 +05:30
|
|
|
+ modules: ['/usr/share/gitlab/node_modules','/usr/share/gitlab/node_modules/mermaid/node_modules', '/usr/lib/nodejs'],
|
2019-05-18 01:04:41 +05:30
|
|
|
alias,
|
2018-11-12 17:59:31 +05:30
|
|
|
},
|
2018-03-27 20:24:05 +05:30
|
|
|
|
2017-09-15 14:00:02 +05:30
|
|
|
+ resolveLoader: {
|
|
|
|
+ modules: ['/usr/share/gitlab/node_modules', '/usr/lib/nodejs'],
|
2018-03-27 20:24:05 +05:30
|
|
|
+ },
|
2017-09-15 14:00:02 +05:30
|
|
|
+
|
2018-11-12 17:59:31 +05:30
|
|
|
module: {
|
|
|
|
strictExportPresence: true,
|
|
|
|
rules: [
|