aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/webpack/webpack.video-embed.js
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-08-17 14:31:30 +0200
committerChocobozzz <me@florianbigard.com>2021-08-17 14:31:30 +0200
commitadb8809d43648ea0a64d6845bb39aa3bd0e005a6 (patch)
treeaffb946e1d63532046b569fe527789010bd7bace /client/webpack/webpack.video-embed.js
parent1d4591fd9c724c9409da31612f6d8c008f1cb5e4 (diff)
downloadPeerTube-adb8809d43648ea0a64d6845bb39aa3bd0e005a6.tar.gz
PeerTube-adb8809d43648ea0a64d6845bb39aa3bd0e005a6.tar.zst
PeerTube-adb8809d43648ea0a64d6845bb39aa3bd0e005a6.zip
Fix webpack config
Diffstat (limited to 'client/webpack/webpack.video-embed.js')
-rw-r--r--client/webpack/webpack.video-embed.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/client/webpack/webpack.video-embed.js b/client/webpack/webpack.video-embed.js
index 2ecbd09af..8320d01e7 100644
--- a/client/webpack/webpack.video-embed.js
+++ b/client/webpack/webpack.video-embed.js
@@ -105,21 +105,23 @@ module.exports = function () {
105 105
106 { 106 {
107 test: /\.html$/, 107 test: /\.html$/,
108 use: 'raw-loader',
109 exclude: [ 108 exclude: [
110 helpers.root('src/index.html'), 109 helpers.root('src/index.html'),
111 helpers.root('src/standalone/videos/embed.html'), 110 helpers.root('src/standalone/videos/embed.html'),
112 helpers.root('src/standalone/videos/test-embed.html') 111 helpers.root('src/standalone/videos/test-embed.html')
113 ] 112 ],
113 type: 'asset/source'
114 }, 114 },
115 115
116 { 116 {
117 test: /\.(jpg|png|gif)$/, 117 test: /\.(jpg|png|gif|svg)$/,
118 use: 'url-loader' 118 type: 'asset'
119 }, 119 },
120 120
121 { test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, use: 'url-loader?limit=10000&minetype=application/font-woff' }, 121 {
122 { test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, use: 'file-loader' } 122 test: /\.(ttf|eot|woff2?)$/,
123 type: 'asset'
124 }
123 ] 125 ]
124 126
125 }, 127 },