aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/config/webpack.common.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/config/webpack.common.js')
-rw-r--r--client/config/webpack.common.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/client/config/webpack.common.js b/client/config/webpack.common.js
index 266e630f6..459985880 100644
--- a/client/config/webpack.common.js
+++ b/client/config/webpack.common.js
@@ -168,6 +168,13 @@ module.exports = function (options) {
168 helpers.root('src/index.html'), 168 helpers.root('src/index.html'),
169 helpers.root('src/standalone/videos/embed.html') 169 helpers.root('src/standalone/videos/embed.html')
170 ] 170 ]
171 },
172
173 /* File loader for supporting images, for example, in CSS files.
174 */
175 {
176 test: /\.(jpg|png|gif)$/,
177 use: 'file-loader'
171 } 178 }
172 179
173 ] 180 ]
@@ -271,7 +278,7 @@ module.exports = function (options) {
271 * See: https://github.com/numical/script-ext-html-webpack-plugin 278 * See: https://github.com/numical/script-ext-html-webpack-plugin
272 */ 279 */
273 new ScriptExtHtmlWebpackPlugin({ 280 new ScriptExtHtmlWebpackPlugin({
274 sync: [ /polyfill|vendor/, 'webtorrent.min.js' ], 281 sync: [ /polyfill|vendor/ ],
275 defaultAttribute: 'async', 282 defaultAttribute: 'async',
276 preload: [/polyfill|vendor|main/], 283 preload: [/polyfill|vendor|main/],
277 prefetch: [/chunk/] 284 prefetch: [/chunk/]