I'd like to know if it's possible using react-script
to rename src
to something else like app
folder
How can I change ReactJS project(folder) name, simply rename the folder name from routing (folder) to react-routing-example (folder).
src(folder) In simplest form it's our react app folder i.e. containing components, tests, css files etc.
You can use react-app-rewired to override react paths configuration. In my case, I can change the paths in config-overrides.js file
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 love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With