aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/config/webpack.common.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-11-07 22:35:37 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-11-07 22:35:37 +0100
commit3bb2c7f99dd495adac8e486e98f135c183642381 (patch)
tree9e5d72adc1cc667c96e1c955dfe2048b3d6e2eeb /client/config/webpack.common.js
parent81ca2cd3f4f4ff2808fce512b38d735c9f550218 (diff)
downloadPeerTube-3bb2c7f99dd495adac8e486e98f135c183642381.tar.gz
PeerTube-3bb2c7f99dd495adac8e486e98f135c183642381.tar.zst
PeerTube-3bb2c7f99dd495adac8e486e98f135c183642381.zip
Prepare embed page
Diffstat (limited to 'client/config/webpack.common.js')
-rw-r--r--client/config/webpack.common.js23
1 files changed, 22 insertions, 1 deletions
diff --git a/client/config/webpack.common.js b/client/config/webpack.common.js
index 5ef5621e6..4ab813d63 100644
--- a/client/config/webpack.common.js
+++ b/client/config/webpack.common.js
@@ -119,7 +119,7 @@ module.exports = function (options) {
119 { 119 {
120 test: /\.html$/, 120 test: /\.html$/,
121 loader: 'raw-loader', 121 loader: 'raw-loader',
122 exclude: [ helpers.root('src/index.html') ] 122 exclude: [ helpers.root('src/index.html'), helpers.root('src/standalone/videos/embed.html') ]
123 } 123 }
124 124
125 ] 125 ]
@@ -187,6 +187,26 @@ module.exports = function (options) {
187 { 187 {
188 from: 'node_modules/webtorrent/webtorrent.min.js', 188 from: 'node_modules/webtorrent/webtorrent.min.js',
189 to: 'assets/webtorrent' 189 to: 'assets/webtorrent'
190 },
191 {
192 from: 'node_modules/video.js/dist/video.min.js',
193 to: 'assets/video-js'
194 },
195 {
196 from: 'node_modules/video.js/dist/video-js.min.css',
197 to: 'assets/video-js'
198 },
199 {
200 from: 'node_modules/videojs-dock/dist/videojs-dock.min.js',
201 to: 'assets/video-js'
202 },
203 {
204 from: 'node_modules/videojs-dock/dist/videojs-dock.css',
205 to: 'assets/video-js'
206 },
207 {
208 from: 'src/standalone',
209 to: 'standalone'
190 } 210 }
191 ]), 211 ]),
192 212
@@ -213,6 +233,7 @@ module.exports = function (options) {
213 * See: https://github.com/numical/script-ext-html-webpack-plugin 233 * See: https://github.com/numical/script-ext-html-webpack-plugin
214 */ 234 */
215 new ScriptExtHtmlWebpackPlugin({ 235 new ScriptExtHtmlWebpackPlugin({
236 sync: [ 'webtorrent.min.js' ],
216 defaultAttribute: 'defer' 237 defaultAttribute: 'defer'
217 }), 238 }),
218 239