How to disable source maps for React JS Application

前端 未结 8 1027
时光说笑
时光说笑 2020-12-08 19:15

My react folder structure is as below

I\'ve not used the create-react-app version. I tried using GENERATE_SOURCEMAP=false. But It didn\'t work.

8条回答
  •  死守一世寂寞
    2020-12-08 19:46

    just remove &&

    "scripts": {    
        "start": "react-scripts start",
        "build": "GENERATE_SOURCEMAP=false react-scripts build",
        "test": "react-scripts test --env=jsdom",
        "eject": "react-scripts eject"
      }
    

提交回复
热议问题