fix: only generate bundle stats during CI (#42094)

* fix: only generate bundle stats during CI

* fix: run if CI exists
This commit is contained in:
Oliver Eyton-Williams
2021-05-11 12:29:44 +02:00
committed by GitHub
parent 5f33051a92
commit 916ca023bf

View File

@ -28,7 +28,7 @@ module.exports = {
resolve: 'gatsby-plugin-webpack-bundle-analyser-v2',
options: {
analyzerMode: 'disabled',
generateStatsFile: true
generateStatsFile: process.env.CI
}
},
'gatsby-plugin-react-helmet',