Skip to content

Commit

Permalink
Add SOURCEMAP environment variable
Browse files Browse the repository at this point in the history
Allow overriding webpack's devtool confing setting with a new SOURCEMAP
environment variable.
  • Loading branch information
noisysocks committed Apr 6, 2018
1 parent 0782f09 commit 1197612
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 1197612

Please sign in to comment.