Skip to content

Commit

Permalink
CW-dev-minification Remove code minify for dev/staging
Browse files Browse the repository at this point in the history
  • Loading branch information
MeyerPV committed Jun 24, 2024
1 parent 99c31f8 commit c660618
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 c660618

Please sign in to comment.