Skip to content

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

Merged
1 commit merged into from
Feb 19, 2019

Conversation

bocharsky-bw
Copy link
Contributor

Q A
License MIT

Don't we need adding ..splitEntryChunks() as pointed in docs? See https://github.com/symfony/webpack-encore-bundle#usage

Copy link

@ghost ghost left a 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.

@weaverryan
Copy link
Member

Yea, I kinda think we should. Everyone should now be using the Twig helpers, so you get this optimization “for free” by enabling this.

Copy link
Member

@weaverryan weaverryan left a 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.

bocharsky-bw added a commit to bocharsky-bw/webpack-encore-bundle that referenced this pull request Dec 24, 2018
@bocharsky-bw
Copy link
Contributor Author

@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

@weaverryan
Copy link
Member

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

weaverryan added a commit to symfony/webpack-encore-bundle that referenced this pull request Jan 17, 2019
…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
@ghost ghost merged commit f16494e into symfony:master Feb 19, 2019
ghost pushed a commit that referenced this pull request Feb 19, 2019
@bocharsky-bw bocharsky-bw deleted the patch-2 branch February 19, 2019 20:09
Keemosty12 added a commit to Keemosty12/webpack-encore-bundle that referenced this pull request Jun 12, 2025
Keemosty12 added a commit to Keemosty12/webpack-encore-bundle that referenced this pull request Jun 12, 2025
…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
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants