File: 0008-webpack-Resolve-from-system-install-paths.patch

package info (click to toggle)
shaarli 0.14.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,612 kB
  • sloc: php: 30,001; javascript: 2,083; makefile: 139; xml: 69; python: 42; sh: 35
file content (39 lines) | stat: -rw-r--r-- 1,053 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From: James Valleroy <jvalleroy@mailbox.org>
Date: Fri, 27 May 2022 08:26:54 -0400
Subject: webpack: Resolve from system install paths

Forwarded: not-needed
---
 webpack.config.js | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/webpack.config.js b/webpack.config.js
index a0688fb..c5e8501 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -33,6 +33,12 @@ module.exports = [
       filename: 'js/[name].min.js',
       path: path.resolve(__dirname, 'tpl/default/')
     },
+    resolve: {
+      modules: ['/usr/lib/nodejs','/usr/share/nodejs']
+    },
+    resolveLoader: {
+      modules: ['/usr/lib/nodejs','/usr/share/nodejs']
+    },
     module: {
       rules: [
         {
@@ -104,6 +110,12 @@ module.exports = [
       filename: 'js/[name].min.js',
       path: path.resolve(__dirname, 'tpl/vintage/')
     },
+    resolve: {
+      modules: ['/usr/lib/nodejs','/usr/share/nodejs']
+    },
+    resolveLoader: {
+      modules: ['/usr/lib/nodejs','/usr/share/nodejs']
+    },
     module: {
       rules: [
         {