My react folder structure is as below:
I haven't used the create-react-app version. I tried using GENERATE_SOURCEMAP=false
, but it didn't work.
Where can I find the .map files? How can I delete those files?
I cannot find a build folder. I've tried using the below script, but it can't remove source maps.
"scripts": {
"start": "react-scripts start",
"build": "GENERATE_SOURCEMAP=false && npm run build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
},
webpack.config.js
to the question. – Keturahkeungnpm run eject
(which is not recommended for beginner) – Aleph