Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5057

Change/add create-react-app entry point or location of index.js

$
0
0

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

Viewing all articles
Browse latest Browse all 5057

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>