diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-06-11 15:19:43 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-06-11 15:19:43 +0200 |
commit | 1840c2f7c91f5f89602a3683d85b0a9df1454855 (patch) | |
tree | 7efc223222e2d318abfaef0839a79e23be727cea /client/config/webpack.common.js | |
parent | 8635a2c70cc24a4c52558162ac058de95750271f (diff) | |
download | PeerTube-1840c2f7c91f5f89602a3683d85b0a9df1454855.tar.gz PeerTube-1840c2f7c91f5f89602a3683d85b0a9df1454855.tar.zst PeerTube-1840c2f7c91f5f89602a3683d85b0a9df1454855.zip |
Update webpack stack
Diffstat (limited to 'client/config/webpack.common.js')
-rw-r--r-- | client/config/webpack.common.js | 9 |
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/] |