Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bundle splitting #336

Closed
jojo05 opened this issue Aug 22, 2017 · 3 comments
Closed

bundle splitting #336

jojo05 opened this issue Aug 22, 2017 · 3 comments

Comments

@jojo05
Copy link

jojo05 commented Aug 22, 2017

Is there a preact.config.js snippet for splitting the bundle in two parts, dependencies and app ?

The use case would be for updating only the app.min.js in the actual PWA production updates

@developit
Copy link
Member

Something that installs CommonsChunkPlugin with a setup to do async commons would be good.

@jojo05
Copy link
Author

jojo05 commented Aug 22, 2017

Having a broad set of preact.config.js snippets that change webpack configuration should help new users not to have to dig deep into webpack (learning webpack myself currently)
https://medium.com/webpack/webpack-bits-getting-the-most-out-of-the-commonschunkplugin-ab389e5f318

@developit
Copy link
Member

Yup - that's what we're using plugins for:
https://github.com/developit/preact-cli/wiki/Plugins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants