petehunt / webpack-howto

10.12k stars 697 forks source link

Multiple entrypoints: what about components? #77

Open kevinSuttle opened 8 years ago

kevinSuttle commented 8 years ago

The example makes sense for "pages", but what about components? Are pages just inferring a set of related components? Do you still need/should you have an entrypoint for each component in a system?

ghostlandr commented 8 years ago

The only components that need an entry point should be "page components" as it were. In my opinion, an entry point should line up with a URL in the browser.