I know that based on create-react-app folder structure, the index.js file should be directly inside src folder.
However, based on a requirement, I need to move it to src/Base directory.
Is it possible?
I know that based on create-react-app folder structure, the index.js file should be directly inside src folder.
However, based on a requirement, I need to move it to src/Base directory.
Is it possible?
You have to eject webpack and change the entry to 'src/base/index'.
example with eject webpack:
npm run eject
In config/paths.js change appIndexJs from resolveModule(resolveApp, 'src/index') to resolveModule(resolveApp, 'src/base/index').
In package.json change scripts:
"start": "node scripts/start.js", "build": "node scripts/build.js", "test": "node scripts/test.js"
Example without eject webpack: