debian-mirror-gitlab/debian/patches/add-system-lib-path-for-webpack.patch
2018-05-09 12:38:34 +05:30

21 lines
510 B
Diff

--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -237,6 +237,7 @@
resolve: {
extensions: ['.js'],
+ modules: ['/usr/share/gitlab/node_modules', '/usr/lib/nodejs'],
alias: {
'~': path.join(ROOT_PATH, 'app/assets/javascripts'),
emojis: path.join(ROOT_PATH, 'fixtures/emojis'),
@@ -249,6 +250,10 @@
},
},
+ resolveLoader: {
+ modules: ['/usr/share/gitlab/node_modules', '/usr/lib/nodejs'],
+ },
+
// sqljs requires fs
node: {
fs: 'empty',