diff options
Diffstat (limited to 'client/webpack')
-rw-r--r-- | client/webpack/webpack.video-embed.js | 12 |
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({ |