Skip to content

Commit

Permalink
Merge pull request #2707 from daostack/CW-dev-minification
Browse files Browse the repository at this point in the history
Disable minification in DEV
  • Loading branch information
MeyerPV authored Jun 25, 2024
2 parents 99c31f8 + c660618 commit 326b870
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module.exports = {
configure: (webpackConfig, { env, paths }) => {
const reactAppEnv = process.env.REACT_APP_ENV;
if (reactAppEnv === "dev" || reactAppEnv === "stage") {
webpackConfig.optimization.minimize = false;
webpackConfig.devtool = "source-map";
} else {
webpackConfig.devtool = false;
Expand Down

0 comments on commit 326b870

Please sign in to comment.