Want to change src folder to something else in create-react-app. You can use react-app-rewired to override react paths configuration. In my case, I can change the paths in config-overrides.js file
1 2 3 4 5 6 7 8 9 | const path = require('path'); module.exports = { paths: function (paths, env) { paths.appIndexJs = path.resolve(__dirname, 'mysrc/client.js'); paths.appSrc = path.resolve(__dirname, 'mysrc'); return paths; }, } |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.