Skip to content

Commit

Permalink
Merge pull request #6027 from WordPress/add/devtool-environment-variable
Browse files Browse the repository at this point in the history
Allow overriding webpack's devtool setting
  • Loading branch information
noisysocks authored Apr 9, 2018
2 parents ef2e71b + 1197612 commit 6a4d45b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ const config = {
};

if ( config.mode !== 'production' ) {
config.devtool = 'source-map';
config.devtool = process.env.SOURCEMAP || 'source-map';
}

module.exports = config;

0 comments on commit 6a4d45b

Please sign in to comment.