Webpack howto by Pete Hunt
at github.com▼7 up and 3 down, posted by
7 up and 3 down, posted by
Split points are called partition-bundle: https://github.com/substack/browserify-handbook#partition-bundle CSS bundles can be created with a specail transformer: https://github.com/davidguttman/cssify
Unfortunately `partition-bundle` can only partition by enrty points specified via configuration. Webpack can also do that and more importantly it can do splitting by split points in code: `require.ensire('./page', function(page) { ... })`. Regarding `cssify`: does it able to extract styles into a separate CSS chunk so I can just include it <head />? Also what if it finds a reference to a font or an image in stylesheet? Webpack can handle all of that (embedding css in js bundle, splitting css into separating chunk, embedding font/images as base64 data URIs or treating them as separate assets and copying into output) and in configurable manner. I like browserify for its super easy and thoughtful API but in terms of features I really need and use I prefer Webpack.