File: webpack.patch

package info (click to toggle)
glewlwyd 2.7.6%2Bds-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,184 kB
  • sloc: ansic: 143,367; javascript: 25,258; sql: 5,698; sh: 669; makefile: 386
file content (16 lines) | stat: -rw-r--r-- 468 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Fix for webpack 5 build
Author: Nicolas Mora <babelouest@debian.org>
Forwarded: not-needed
--- a/webapp-src/webpack.config.js
+++ b/webapp-src/webpack.config.js
@@ -31,6 +31,10 @@
   },
   resolve: {
     extensions: ['*', '.js', '.jsx'],
+    modules: ['/usr/lib/nodejs', '/usr/share/nodejs', 'node_modules']
+  },
+  resolveLoader: {
+    modules: ['/usr/lib/nodejs', '/usr/share/nodejs'],
   },
   output: {
 		path: path.resolve(__dirname, 'output'),