Analyze embed too with bundlewatch

This commit is contained in:
Chocobozzz 2020-08-06 10:26:39 +02:00 committed by Chocobozzz
parent 5c145fe7ab
commit a3b5e78af3
6 changed files with 27 additions and 10 deletions

View file

@ -33,9 +33,13 @@ module.exports = function () {
output: {
path: helpers.root('dist/standalone/videos'),
filename: '[name].[hash].bundle.js',
filename: process.env.ANALYZE_BUNDLE === 'true'
? '[name].bundle.js'
: '[name].[hash].bundle.js',
sourceMapFilename: '[file].map',
chunkFilename: '[id].chunk.js',
chunkFilename: '[id].[hash].chunk.js',
publicPath: '/client/standalone/videos/'
},
@ -113,7 +117,9 @@ module.exports = function () {
plugins: [
new ExtractTextPlugin({
filename: '[name].[hash].css'
filename: process.env.ANALYZE_BUNDLE === 'true'
? '[name].css'
: '[name].[hash].css'
}),
new PurifyCSSPlugin({