create-react-app is showing all my code in production, how to hide it?

前端 未结 7 1724
说谎
说谎 2020-12-08 15:23

In my chrome sources tab, I am able to view all my files by exact folder location. How can I hide them?

These weren\'t the problem in my previous project, w

相关标签:
7条回答
  • 2020-12-08 15:56

    In in package.json (Windows)

    "scripts": {
    ...
        "cleanBuild": "rimraf ./build/*",
        "build": "npm run cleanBuild && set \"GENERATE_SOURCEMAP=false\" && react-scripts build ",
    ...
    }
    
    0 讨论(0)
提交回复
热议问题