diff options
author | Chocobozzz <me@florianbigard.com> | 2021-02-25 15:00:43 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-02-25 15:01:29 +0100 |
commit | 031ea8efed6979cb01d0a7857cea6aa27270ceb7 (patch) | |
tree | d5f7a82b44b239abbb9a53d5d74b702514c5c2d3 /client/webpack/webpack.video-embed.js | |
parent | d61893f7236abbed30c25b1823e6ecad93a8e8dd (diff) | |
download | PeerTube-031ea8efed6979cb01d0a7857cea6aa27270ceb7.tar.gz PeerTube-031ea8efed6979cb01d0a7857cea6aa27270ceb7.tar.zst PeerTube-031ea8efed6979cb01d0a7857cea6aa27270ceb7.zip |
Use named chunk for embed on analyze
Diffstat (limited to 'client/webpack/webpack.video-embed.js')
-rw-r--r-- | client/webpack/webpack.video-embed.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/webpack/webpack.video-embed.js b/client/webpack/webpack.video-embed.js index ef17deeb6..7de63adfc 100644 --- a/client/webpack/webpack.video-embed.js +++ b/client/webpack/webpack.video-embed.js | |||
@@ -40,7 +40,11 @@ module.exports = function () { | |||
40 | : '[name].[hash].bundle.js', | 40 | : '[name].[hash].bundle.js', |
41 | 41 | ||
42 | sourceMapFilename: '[file].map', | 42 | sourceMapFilename: '[file].map', |
43 | chunkFilename: '[id].[hash].chunk.js', | 43 | |
44 | chunkFilename: process.env.ANALYZE_BUNDLE === 'true' | ||
45 | ? '[name].chunk.js' | ||
46 | : '[id].[hash].chunk.js', | ||
47 | |||
44 | publicPath: '/client/standalone/videos/' | 48 | publicPath: '/client/standalone/videos/' |
45 | }, | 49 | }, |
46 | 50 | ||