From 61bceee3fab0267aaac29d3927a55ca966fb5511 Mon Sep 17 00:00:00 2001 From: Grzegorz Ziolkowski Date: Thu, 11 Oct 2018 15:40:31 +0200 Subject: [PATCH] Add GUTENBERG_ prefix to env variables used in Webpack config --- webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index b945d6fe0ccda6..afa358b564b341 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -230,7 +230,7 @@ const config = { }, } ) ) ), - process.env.BUNDLE_ANALYZER && new BundleAnalyzerPlugin(), + process.env.GUTENBERG_BUNDLE_ANALYZER && new BundleAnalyzerPlugin(), ! isProduction && new LiveReloadPlugin( { port: process.env.GUTENBERG_LIVE_RELOAD_PORT || 35729 } ), ].filter( Boolean ), stats: { @@ -239,7 +239,7 @@ const config = { }; if ( ! isProduction ) { - config.devtool = process.env.SOURCEMAP || 'source-map'; + config.devtool = process.env.GUTENBERG_DEVTOOL || 'source-map'; } module.exports = config;