aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-08-06 10:26:39 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-08-06 10:58:36 +0200
commita3b5e78af3696f807e54bc4b11e559bbd9b6ba1e (patch)
tree037c42e9a7a637fba9be5d52800afba402eb9df2 /client
parent5c145fe7ab6c1e975f5d43391316e8db9ca31974 (diff)
downloadPeerTube-a3b5e78af3696f807e54bc4b11e559bbd9b6ba1e.tar.gz
PeerTube-a3b5e78af3696f807e54bc4b11e559bbd9b6ba1e.tar.zst
PeerTube-a3b5e78af3696f807e54bc4b11e559bbd9b6ba1e.zip
Analyze embed too with bundlewatch
Diffstat (limited to 'client')
-rw-r--r--client/webpack/webpack.video-embed.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/client/webpack/webpack.video-embed.js b/client/webpack/webpack.video-embed.js
index 252040bb7..e7671d3ea 100644
--- a/client/webpack/webpack.video-embed.js
+++ b/client/webpack/webpack.video-embed.js
@@ -33,9 +33,13 @@ module.exports = function () {
33 33
34 output: { 34 output: {
35 path: helpers.root('dist/standalone/videos'), 35 path: helpers.root('dist/standalone/videos'),
36 filename: '[name].[hash].bundle.js', 36
37 filename: process.env.ANALYZE_BUNDLE === 'true'
38 ? '[name].bundle.js'
39 : '[name].[hash].bundle.js',
40
37 sourceMapFilename: '[file].map', 41 sourceMapFilename: '[file].map',
38 chunkFilename: '[id].chunk.js', 42 chunkFilename: '[id].[hash].chunk.js',
39 publicPath: '/client/standalone/videos/' 43 publicPath: '/client/standalone/videos/'
40 }, 44 },
41 45
@@ -113,7 +117,9 @@ module.exports = function () {
113 117
114 plugins: [ 118 plugins: [
115 new ExtractTextPlugin({ 119 new ExtractTextPlugin({
116 filename: '[name].[hash].css' 120 filename: process.env.ANALYZE_BUNDLE === 'true'
121 ? '[name].css'
122 : '[name].[hash].css'
117 }), 123 }),
118 124
119 new PurifyCSSPlugin({ 125 new PurifyCSSPlugin({