Skip to content

Commit

Permalink
Add GUTENBERG_ prefix to env variables used in Webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Oct 11, 2018
1 parent 91d9f96 commit 61bceee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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;

0 comments on commit 61bceee

Please sign in to comment.