Skip to content

Commit

Permalink
Merge branch 'staging' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
andreymikhadyuk committed Nov 14, 2023
2 parents a363e60 + 5e1a3ff commit 7a819e5
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 7a819e5

Please sign in to comment.