Skip to content

Commit

Permalink
Merge branch 'master' into staging
Browse files Browse the repository at this point in the history
# Conflicts:
#	craco.config.js
  • Loading branch information
andreymikhadyuk committed Nov 14, 2023
2 parents e84028a + 0debe25 commit 5e1a3ff
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 === "production") {
delete webpackConfig.devtool;
}

return webpackConfig;
},
Expand Down

0 comments on commit 5e1a3ff

Please sign in to comment.