Skip to content

Commit

Permalink
Merge pull request #2312 from daostack/feature/CW-2299-disable-sorce-…
Browse files Browse the repository at this point in the history
…mapping

Disable source mapping in staging
  • Loading branch information
andreymikhadyuk authored Nov 14, 2023
2 parents 5f5f58c + 75f980a commit 701c4e9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@ module.exports = {
{
plugin: {
overrideWebpackConfig: ({ webpackConfig }) => {
webpackConfig.devtool =
process.env.REACT_APP_ENV === "dev"
? "source-map"
: "eval-cheap-module-source-map";
if (process.env.REACT_APP_ENV === "stage") {
delete webpackConfig.devtool;
}

return webpackConfig;
},
Expand Down

0 comments on commit 701c4e9

Please sign in to comment.