From 3bb2c7f99dd495adac8e486e98f135c183642381 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 7 Nov 2016 22:35:37 +0100 Subject: Prepare embed page --- client/config/webpack.common.js | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'client/config/webpack.common.js') 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) { { test: /\.html$/, loader: 'raw-loader', - exclude: [ helpers.root('src/index.html') ] + exclude: [ helpers.root('src/index.html'), helpers.root('src/standalone/videos/embed.html') ] } ] @@ -187,6 +187,26 @@ module.exports = function (options) { { from: 'node_modules/webtorrent/webtorrent.min.js', to: 'assets/webtorrent' + }, + { + from: 'node_modules/video.js/dist/video.min.js', + to: 'assets/video-js' + }, + { + from: 'node_modules/video.js/dist/video-js.min.css', + to: 'assets/video-js' + }, + { + from: 'node_modules/videojs-dock/dist/videojs-dock.min.js', + to: 'assets/video-js' + }, + { + from: 'node_modules/videojs-dock/dist/videojs-dock.css', + to: 'assets/video-js' + }, + { + from: 'src/standalone', + to: 'standalone' } ]), @@ -213,6 +233,7 @@ module.exports = function (options) { * See: https://github.com/numical/script-ext-html-webpack-plugin */ new ScriptExtHtmlWebpackPlugin({ + sync: [ 'webtorrent.min.js' ], defaultAttribute: 'defer' }), -- cgit v1.2.3