-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Speed up scaffolding process #3077
Comments
Current @vue/cli-service deps: After extracting these deps (https://github.com/sodatea/vue-cli/blob/33c7c9f212f668e389b4abf231d706e9ea00b69a/packages/%40vue/cli-service-dependencies/package.json):
92 + 3M, 11076 + 1 files Still a long way to go…… |
majority of it is probably webpack... |
Actually, measuring size and file count probably isn't the most reflective of the gains - saving network requests is also important. |
I think we'll get the best ROI by tackling all the postcss stuff. |
As for the network request, it's 982 -> 888 after the above-mentioned commit. As a sidenote:
Well… at least it's worth a try to bundle webpack-dev-server & html-webpack-plugin. |
After extracting webpack-dev-server, it's now 829 + 1 packages, |
Extracting |
Nice initiative 👍 |
On a cold install of vue-cli, I get a timeout on material-design-icons, related ticket: yarnpkg/yarn#5540 Lines 2156 to 2162 in 09be0f2
|
|
As of v3.6: |
pnpm support should not be written off... there are about 5 packages that wreack havoc on glitch with vue-cli. The workaround is to disable pnpm. Glitch runs vanilla pnpm by default. Which means broken packages with undefined dependencies are not acceptable. Not to mention using |
@rayfoss feel free to submit a bug report. |
What problem does this feature solve?
Current installed size of default preset:
and 20k files in
node_modules
.The installation process takes at least tens of seconds to finish, let alone fresh installs without cache.
What does the proposed API look like?
There're several ways to speed up dependency installation:
PNPM Support
Blocked by #2703
Yarn Plug'n'Play Support
Tracked at #2850
Blocked by yarnpkg/yarn#6487
Reducing the number and size of indirect dependencies
Current installed size of core packages:
Could be done by bundling dependencies into the published package itself.
Possible bundling tool:
Problems encountered:
The text was updated successfully, but these errors were encountered: