]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix webpack config
authorChocobozzz <me@florianbigard.com>
Tue, 17 Aug 2021 12:31:30 +0000 (14:31 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 17 Aug 2021 12:31:30 +0000 (14:31 +0200)
client/package.json
client/webpack/webpack.video-embed.js
client/yarn.lock

index 6a9529cf6f779d4ec51bdc34e3d7aeaf0c7168a6..1a04106f4b9247ffe0b8169e7786cd69d7ae765e 100644 (file)
@@ -75,7 +75,6 @@
     "css-loader": "^6.2.0",
     "debug": "^4.3.1",
     "dexie": "^3.0.0",
-    "file-loader": "^6.0.0",
     "focus-visible": "^5.0.2",
     "hls.js": "^1.0.7",
     "html-loader": "^2.1.2",
@@ -99,7 +98,7 @@
     "process": "^0.11.10",
     "protractor": "~7.0.0",
     "purify-css": "^1.2.5",
-    "raw-loader": "^4.0.0",
+    "raw-loader": "^4.0.2",
     "rxjs": "^7.3.0",
     "sanitize-html": "^2.1.2",
     "sass": "^1.34.0",
index 2ecbd09afc1300c2417d3306dec8e5587f83aca8..8320d01e71d5d3bd49cecced17809da12784228e 100644 (file)
@@ -105,21 +105,23 @@ module.exports = function () {
 
         {
           test: /\.html$/,
-          use: 'raw-loader',
           exclude: [
             helpers.root('src/index.html'),
             helpers.root('src/standalone/videos/embed.html'),
             helpers.root('src/standalone/videos/test-embed.html')
-          ]
+          ],
+          type: 'asset/source'
         },
 
         {
-          test: /\.(jpg|png|gif)$/,
-          use: 'url-loader'
+          test: /\.(jpg|png|gif|svg)$/,
+          type: 'asset'
         },
 
-        { test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, use: 'url-loader?limit=10000&minetype=application/font-woff' },
-        { test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, use: 'file-loader' }
+        {
+          test: /\.(ttf|eot|woff2?)$/,
+          type: 'asset'
+        }
       ]
 
     },
index 6f087589ffe489dc846c584c97dd7a4e18688036..b2120b31b60ce0da4c978f6703d45437892f910d 100644 (file)
@@ -4471,14 +4471,6 @@ file-entry-cache@^6.0.1:
   dependencies:
     flat-cache "^3.0.4"
 
-file-loader@^6.0.0:
-  version "6.2.0"
-  resolved "https://registry.yarnpkg.com/file-loader/-/file-loader-6.2.0.tgz#baef7cf8e1840df325e4390b4484879480eebe4d"
-  integrity sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==
-  dependencies:
-    loader-utils "^2.0.0"
-    schema-utils "^3.0.0"
-
 file-uri-to-path@1.0.0:
   version "1.0.0"
   resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd"
@@ -8653,7 +8645,7 @@ raw-body@2.4.0:
     iconv-lite "0.4.24"
     unpipe "1.0.0"
 
-raw-loader@^4.0.0:
+raw-loader@^4.0.2:
   version "4.0.2"
   resolved "https://registry.yarnpkg.com/raw-loader/-/raw-loader-4.0.2.tgz#1aac6b7d1ad1501e66efdac1522c73e59a584eb6"
   integrity sha512-ZnScIV3ag9A4wPX/ZayxL/jZH+euYb6FcUinPcgiQW0+UBtEv0O6Q3lGd3cqJ+GHH+rksEv3Pj99oxJ3u3VIKA==