Skip to content

Commit

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

Disable source mapping on production
  • Loading branch information
andreymikhadyuk authored Nov 14, 2023
2 parents a54ec9f + 28fe5da commit 0debe25
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,16 @@ module.exports = {
tsConfigPath: "./tsconfig.paths.json",
},
},
{
plugin: {
overrideWebpackConfig: ({ webpackConfig }) => {
if (process.env.REACT_APP_ENV === "production") {
delete webpackConfig.devtool;
}

return webpackConfig;
},
},
},
],
};

0 comments on commit 0debe25

Please sign in to comment.