• General

    Remove map files in React CRA

    Map files are generated by default when you do a build using webpack.If you don’t want .map files in your build you can do the below steps. Create a new .env in your project root (don’t put it in src folder) Add GENERATE_SOURCEMAP=false in your .env file Execute command npm run build, this should build files without any map files. Your .env file will look like this.