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

why these are [id].chunk.js event if I did not enable code splitting #9

Open
wulucxy opened this issue Dec 5, 2018 · 1 comment
Open

Comments

@wulucxy
Copy link

wulucxy commented Dec 5, 2018

@pomber thanks for the article。

I have a question,when I start the master,these are just normal pages without code-splitting, so there is only one js(i think)。but actually there are 3 js download as below。

image

do I miss anything?

@pomber
Copy link
Owner

pomber commented Dec 5, 2018

That's webpack doing some optimizations.
I removed the optimizations in the prod build to make it simpler for the post.
If you want to try it: build the app (yarn build) and serve the build folder (npx serve ./build).

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

No branches or pull requests

2 participants