How does react-create-app/react-scripts find the entry point?

本小妞迷上赌 提交于 2021-01-18 05:30:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!