jlengstorf / learn-rollup

This is an example project to accompany a tutorial on using Rollup.
https://code.lengstorf.com/learn-rollup-js/
ISC License
191 stars 61 forks source link

rollup how to package multi-page application? #35

Closed tedyhy closed 7 years ago

tedyhy commented 7 years ago

hi,I would like to ask a question, rollup how to package multi-page application, it seems to be only a single entry (a string), unlike the webpack entry can be an array or object. My current solution is to traverse the rollup configuration file to generate multiple bundles, but can not generate a common bundle like webpack. thanks a lot.

jlengstorf commented 7 years ago

Hey, @tedyhy — this is probably a better question for either Stack Overflow or the Rollup repo. In general, though, once you get into more advanced use cases you'll probably have an easier time using Webpack 2, which offers the same tree-shaking benefits of Rollup, but also has extra tools for use cases like you've described.

tedyhy commented 7 years ago

thanks a lot @jlengstorf 😊