Closed hairyf closed 2 years ago
What do you mean? I think its hot update works well.
After build, it should work well and be faster.
Well, sorry I didn't explain the situation
I'm not sure if it's an environment issue, I'm running the process as the documentation says
# dev node
pnpm dev
# dev client
pnpm demo
Then wait for the page to display
........zzzzz
The page is displayed for at least a minute or more
I want to know what is the reason for this
When I refresh the page again, the speed of the page still does not change
My local environment works just fine.
Are you Windows, trying a Unix-like command line? Perhaps the path of Windows caused by a cycle and so on, but I do not have Windows to debug now.
yes i am window environment,
I execute cmd in vscode, using powershell
I execute cmd in vscode, using powershell
Try git bash or zsh or wsl, I thought it might be Powershell, but I couldn't reproduce it.
Hmm..., I solved it in a fantastic way
I separated the valaxy-theme-[name]
through pnpm-workspace
, and the running speed is normal at this time
pnpm-workspace.yaml
packages: - demo - src
src
- config - layouts - styles - types - index.ts # Here is my valaxy-theme-[name] package - package.json
https://github.com/TuiMao233/valaxy-theme-tentative/tree/master/src
Here is the repository for this use case
Yes, and I don't think the directory structure should all be stored in the root directory , At least not too messy when developing
Maybe for this reason, the reference exception in node_modules,For example this case
valaxy-theme-[name] > devDependencies:valaxy-theme-[name] > valaxy-theme-[name]
I'm not very clear about the subject citation mechanism of valaxy, this is my guess
In addition, I also tested git bash, zsh, wsl, and it is still the same
OK. I will refactor its structure.
Hey, can you try new starter? Maybe it will work now.
Hey, can you try new starter? Maybe it will work now.
Oh, the structure is clear now and there are no speed issues, great!
What do you mean? I think its hot update works well.
After build, it should work well and be faster.