-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
yarn serve stuck at "95% emitting CopyPlugin" #4252
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
Comments
Having the same issue. |
Vue CLI is not meant to be a static web server so this is not a valid use case. |
Hi @sodatea Maybe give a little bit more consideration on this one? I read the documentation, and seems my case is exactly the second one,
I tried to copy the the file into the public folder, the bug reproduced also. So could you be more specific of your claim? Because how the documentation describe here is strongly imply user to use it as a static file service.
|
Even if it does static file serving at some extent, it’s not a full featured static web server like |
My point is , I have a huge folder , I tried copy this huge folder into This raise a new question: What is the safely allowed size to put under public/ folder? |
Then you provided the wrong reproduction. And I’ve just symlinked a folder with nearly 1GB of content into |
Thank you for clarify this. My copied folder has about 2TB, so seems I have no lucky on this. I am trying to use vue.config.js to inject Maybe warn a little bit in the documentation would be better for future user to avoid wasting time on this :) |
Well, typically, HTML/JS/CSS and large files are stored separately… (CDN for the former, object or block storage for the latter) |
Yes, cdn will be used for file distribution, but mount at dev mode brings a lot of convenient benefits. Thanks for considering adding the warning in doc. |
FYI, the problem in my scenario appeared to be related to not enough memory available in the environment I was working on for the node process, after I increased memory it solved the issue. |
may this can help more |
In my case, I recheck again my code, and I found my import path is invalid, something like :
After fix the code, It works again. |
@intijk How do I configure to ignore some files in public when I execute |
Version
3.9.2
Reproduction link
https://github.com/intijk/vue-cli3-bug-report-copyplugin-stuck
Environment info
Steps to reproduce
cd public
ln -s / root
cd ..
yarn serve
What is expected?
compile without issue
What is actually happening?
stuck at 95% emitting CopyPlugin
My need is simple, I want to serve files belong to a folder as is, a huge one, with symlink.
I am not sure if I am using the public in correct way, but in vue cli 2, that was a valid usage.
Maybe I should add ignore for copy plugin ? But really need some guide here on how to do that. Thank you very much!
The text was updated successfully, but these errors were encountered: