We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a35569c commit 5102d9fCopy full SHA for 5102d9f
1 file changed
gatsby-config.js
@@ -49,13 +49,17 @@ module.exports = {
49
mergeCachingHeaders: true,
50
},
51
52
- process.env.ANALYZE_BUNDLE && {
53
- resolve: "gatsby-plugin-webpack-bundle-analyser-v2",
54
- options: {
55
- analyzerMode: "server",
56
- openAnalyzer: true,
57
- },
58
+ ...(process.env.ANALYZE_BUNDLE
+ ? [
+ {
+ resolve: "gatsby-plugin-webpack-bundle-analyser-v2",
+ options: {
+ analyzerMode: "server",
+ openAnalyzer: true,
59
+ },
60
61
+ ]
62
+ : []),
63
{
64
resolve: "gatsby-plugin-sitemap",
65
options: {
0 commit comments