title: npm run build is not minifying the reactJs project
body: <p>I executed the npm command &quot;npm run build&quot; from the reactJs App root folder and &quot;build' folder is generated with the below output in the console.</p>
  <pre><code>    File sizes after gzip:
  
    646.8 KB  build\static\js\2.d370d4e1.chunk.js
    12.46 KB  build\static\js\main.fec451dd.chunk.js
    823 B     build\static\css\main.fc109ae9.chunk.css
    772 B     build\static\js\runtime-main.83c3e0c4.js
  
  The project was built assuming it is hosted at /.
  You can control this with the homepage field in your package.json.
  
  The build folder is ready to be deployed.
  You may serve it with a static server:
  
    serve -s build
  </code></pre>
  <p>Then I executed the command &quot;serve -s build&quot; and got the below output in the console.</p>
  <pre><code>INFO: Accepting connections at http://localhost:5000
  </code></pre>
  <p>I could see all the *.tsx files not minified in developer tools. Not sure what am I doing wrong and why the files in the below mentioned &quot;js&quot; folder are not minified .
  <a href="https://i.stack.imgur.com/A6ujD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A6ujD.png" alt="enter image description here" /></a></p>
  <p><strong>package.json</strong></p>
  <pre><code> {
    &quot;name&quot;: &quot;my-app&quot;,
    &quot;version&quot;: &quot;0.1.0&quot;,
    &quot;private&quot;: true,
    &quot;dependencies&quot;: {
      &quot;@material-ui/core&quot;: &quot;^4.11.0&quot;,
      &quot;@material-ui/icons&quot;: &quot;^4.9.1&quot;,
      &quot;@material-ui/lab&quot;: &quot;^4.0.0-alpha.56&quot;,
      &quot;@testing-library/jest-dom&quot;: &quot;^4.2.4&quot;,
      &quot;@testing-library/react&quot;: &quot;^9.5.0&quot;,
      &quot;@testing-library/user-event&quot;: &quot;^7.2.1&quot;,
      &quot;@types/jest&quot;: &quot;^24.9.1&quot;,
      &quot;@types/node&quot;: &quot;^12.12.68&quot;,
      &quot;@types/react&quot;: &quot;^16.9.53&quot;,
      &quot;@types/react-dom&quot;: &quot;^16.9.8&quot;,
      &quot;node&quot;: &quot;^15.4.0&quot;,
      &quot;react&quot;: &quot;^16.14.0&quot;,
      &quot;react-dom&quot;: &quot;^16.14.0&quot;,
      &quot;react-scripts&quot;: &quot;3.4.3&quot;,
      &quot;typescript&quot;: &quot;^3.7.5&quot;,
    },
    &quot;scripts&quot;: {
      &quot;start&quot;: &quot;react-scripts start&quot;,
      &quot;build&quot;: &quot;react-scripts build&quot;,
      &quot;test&quot;: &quot;react-scripts test&quot;,
      &quot;eject&quot;: &quot;react-scripts eject&quot;,
      &quot;prod&quot;: &quot;webpack --mode production&quot;
    },
    &quot;eslintConfig&quot;: {
      &quot;extends&quot;: &quot;react-app&quot;
    },
    &quot;browserslist&quot;: {
      &quot;production&quot;: [
        &quot;&gt;0.2%&quot;,
        &quot;not dead&quot;,
        &quot;not op_mini all&quot;
      ],
      &quot;development&quot;: [
        &quot;last 1 chrome version&quot;,
        &quot;last 1 firefox version&quot;,
        &quot;last 1 safari version&quot;
      ]
    },
    &quot;devDependencies&quot;: {
      &quot;ts-loader&quot;: &quot;^8.0.12&quot;,
      &quot;typescript&quot;: &quot;^3.7.5&quot;,
      &quot;webpack-cli&quot;: &quot;^4.3.0&quot;
    }
  }
  </code></pre>