diff options
Diffstat (limited to 'client/config/webpack.common.js')
-rw-r--r-- | client/config/webpack.common.js | 23 |
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 | ||