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: [
{
|