diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-12-05 15:01:47 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-12-05 15:12:03 +0100 |
commit | 6bafac54bf375cd60f1c06f6afdc648e0e19743d (patch) | |
tree | 15bb5c0de684993a3301a9d86431569b2188d224 /client/config/webpack.common.js | |
parent | be6a4802326b1748e85c0d6fdadf06e70e6ecbb0 (diff) | |
download | PeerTube-6bafac54bf375cd60f1c06f6afdc648e0e19743d.tar.gz PeerTube-6bafac54bf375cd60f1c06f6afdc648e0e19743d.tar.zst PeerTube-6bafac54bf375cd60f1c06f6afdc648e0e19743d.zip |
Fix missing default avatar
Diffstat (limited to 'client/config/webpack.common.js')
-rw-r--r-- | client/config/webpack.common.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/client/config/webpack.common.js b/client/config/webpack.common.js index acf22dab1..c37516271 100644 --- a/client/config/webpack.common.js +++ b/client/config/webpack.common.js | |||
@@ -13,6 +13,7 @@ const LoaderOptionsPlugin = require('webpack/lib/LoaderOptionsPlugin') | |||
13 | const ScriptExtHtmlWebpackPlugin = require('script-ext-html-webpack-plugin') | 13 | const ScriptExtHtmlWebpackPlugin = require('script-ext-html-webpack-plugin') |
14 | const InlineManifestWebpackPlugin = require('inline-manifest-webpack-plugin') | 14 | const InlineManifestWebpackPlugin = require('inline-manifest-webpack-plugin') |
15 | const ngcWebpack = require('ngc-webpack') | 15 | const ngcWebpack = require('ngc-webpack') |
16 | const CopyWebpackPlugin = require('copy-webpack-plugin') | ||
16 | 17 | ||
17 | const WebpackNotifierPlugin = require('webpack-notifier') | 18 | const WebpackNotifierPlugin = require('webpack-notifier') |
18 | 19 | ||
@@ -267,6 +268,17 @@ module.exports = function (options) { | |||
267 | inject: 'body' | 268 | inject: 'body' |
268 | }), | 269 | }), |
269 | 270 | ||
271 | new CopyWebpackPlugin([ | ||
272 | { | ||
273 | from: helpers.root('src/assets/images/favicon.png'), | ||
274 | to: 'assets/images/favicon.png' | ||
275 | }, | ||
276 | { | ||
277 | from: helpers.root('src/assets/images/default-avatar.png'), | ||
278 | to: 'assets/images/default-avatar.png' | ||
279 | } | ||
280 | ]), | ||
281 | |||
270 | /* | 282 | /* |
271 | * Plugin: ScriptExtHtmlWebpackPlugin | 283 | * Plugin: ScriptExtHtmlWebpackPlugin |
272 | * Description: Enhances html-webpack-plugin functionality | 284 | * Description: Enhances html-webpack-plugin functionality |