-
-
Notifications
You must be signed in to change notification settings - Fork 497
Add .splitEntryChunks() to webpack.config.js #509
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request passes validation.
Yea, I kinda think we should. Everyone should now be using the Twig helpers, so you get this optimization “for free” by enabling this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also make a docs pr (if necessary) - we probably mention needing to add this line, which won’t be true anymore. And in the “first example” page, the output files will be different, so we’ll need to update that to avoid confusion.
Now it's already enabled in the recipe, see symfony/recipes#509
@weaverryan Can take a look at docs later, but what do you mean about different output files in the “first example” page? We still have runtime.js, app.css, and app.js. We also mention entrypoints.json on that page too, though I don't see any mention for manifest.json there |
Hmm, you might be right that no changes are needed. I was thinking that some files might be “split” already - and so we might have a vendor~...js type of file. But probably there isn’t enough to cause splitting in that first chapter. +1 for this PR |
…bocharsky-bw) This PR was merged into the master branch. Discussion ---------- Tweak docs: Now .splitEntryChunks() is enabled by default Now it's already enabled in the recipe, see symfony/recipes#509 Commits ------- 37c2deb Tweak docs: Now .splitEntryChunks() is enabled by default
Now it's already enabled in the recipe, see symfony/recipes#509
…bocharsky-bw) This PR was merged into the master branch. Discussion ---------- Tweak docs: Now .splitEntryChunks() is enabled by default Now it's already enabled in the recipe, see symfony/recipes#509 Commits ------- 37c2deb Tweak docs: Now .splitEntryChunks() is enabled by default
Don't we need adding .
.splitEntryChunks()
as pointed in docs? See https://github.com/symfony/webpack-encore-bundle#usage