You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry, but Create React App doesn't support this use case.
You can eject and then configure Webpack to have multiple entry points.
Reacted by Furkan Tunalı, Andrii Smirnov, Ian Tracey, Johan Dufour, Qīngxiào Xuē, Zain Allarakhia, iamcastelli, Manoj Govindan, Luc Heinrich, kenjiru and 11 more
this code will generate two entry points:index.min.js&detail.min.js.
But I confused about how I work with HtmlWebpackPlugin to explore the pages.
like http://localhost:8080/index & http://localhost:8080/detail
Activity
gaearon commentedon Nov 21, 2016
Sorry, but Create React App doesn't support this use case.
You can eject and then configure Webpack to have multiple entry points.
lcoder commentedon May 14, 2017
how to make multiple entry points with
ejectgaearon commentedon May 15, 2017
If you eject, please follow Webpack's documentation on entry points.
lcoder commentedon May 16, 2017
@gaearon
Thanks! I know how to make multiple entry points with webpack.
something like:
this code will generate two entry points:
index.min.js&detail.min.js.But I confused about how I work with HtmlWebpackPlugin to explore the pages.
like
http://localhost:8080/index&http://localhost:8080/detailgaearon commentedon May 16, 2017
I don’t really know either, sorry 😅
You can try asking in the respective repos.
lcoder commentedon May 16, 2017
@gaearon Thank you all the same.
maoshuai commentedon Jun 15, 2017
Actually, you need to config webpack entry/htmlWebpackPlugin/webpack dev server, here is a best practice:http://imshuai.com/create-react-app-multiple-entry-points/