I am trying to use create-react-app to create a simple web-app. I have moved the pages and components into separate directories under src labeled pages
and components
. I would like to change/add the entry point for index.js from src/index.js to src/pages/index.js. Another option would be to keep index.js in src/ and import from pages and component directories. Can someone help me to find how i can change the entry point path?
I can't seem to find the location of the default html-webpack-plugin config file.
Here is what I would like the structure to be:
(in src)...pages/ - App.js - Home.jscomponents/ - Filter.jsserviceWorker.js