>From 71152b1ab41fe622938d754c7dace079688cb769 Mon Sep 17 00:00:00 2001
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Date: Thu, 4 Mar 2021 16:45:52 +0100
Subject: [PATCH 1/2] debian/patches: Use relative node_modules/ path when
 webpacking katex fonts. The libjs-katex bin:pkg brings all the required
 symlinks for webpack.js to find the font directory. (Closes: #983924).

---
 debian/patches/0740-use-packaged-modules.patch | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/debian/patches/0740-use-packaged-modules.patch b/debian/patches/0740-use-packaged-modules.patch
index 0ea35fa6f..ce31529f4 100644
--- a/debian/patches/0740-use-packaged-modules.patch
+++ b/debian/patches/0740-use-packaged-modules.patch
@@ -69,15 +69,6 @@ Use debian packaged node modules when available
          loader: 'babel-loader',
          options: {
            cacheDirectory: path.join(CACHE_PATH, 'babel-loader'),
-@@ -272,7 +277,7 @@
-       },
-       {
-         test: /\.(eot|ttf|woff|woff2)$/,
--        include: /node_modules\/(katex\/dist\/fonts|monaco-editor)/,
-+        include: /(node_modules\/monaco-editor|\/usr\/share\/fonts\/truetype\/katex)/,
-         loader: 'file-loader',
-         options: {
-           name: '[name].[contenthash:8].[ext]',
 @@ -551,19 +556,6 @@
      // enable HMR only in webpack-dev-server
      DEV_SERVER_LIVERELOAD && new webpack.HotModuleReplacementPlugin(),
-- 
2.30.1

