]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/webpack/webpack.video-embed.js
Use named chunk for embed on analyze
[github/Chocobozzz/PeerTube.git] / client / webpack / webpack.video-embed.js
index ef17deeb6ce04c14fd48ac153ff86e6b01dc84fe..7de63adfcc40adc54ab52dd165d274fe45b3da04 100644 (file)
@@ -40,7 +40,11 @@ module.exports = function () {
         : '[name].[hash].bundle.js',
 
       sourceMapFilename: '[file].map',
-      chunkFilename: '[id].[hash].chunk.js',
+
+      chunkFilename: process.env.ANALYZE_BUNDLE === 'true'
+        ? '[name].chunk.js'
+        : '[id].[hash].chunk.js',
+
       publicPath: '/client/standalone/videos/'
     },