问题
In this tutorial, how does npm start
find the src/index/js
to star the render? I can't find the configuration of this anywhere.
回答1:
you can run npm run eject
so that the project turn back to a normal webpack project. then you can find the configs.
回答2:
while running npm run eject, you can find a config folder with all configuration files. Inside path.js file you can find the default path and if want you can change the default path there. Be careful while doing this since it is an irreversible process
Ref :http://blog.teamtreehouse.com/getting-started-create-react-app-tool
来源:https://stackoverflow.com/questions/44403923/how-does-react-create-app-react-scripts-find-the-entry-point