NPM run serve VueJS非常慢

huangapple go评论65阅读模式
英文:

NPM run serve VueJS very slow

问题

I'm running a project (quite big) with VueJS and npm. Every time I run npm run serve it takes 4/5 minutes, then when I make changes it's very quick to make the differential compile but every 5/6 differential compiles it slows down again for one run and then is fast again (by fast I mean under 10 seconds).
I thought different kind of changes made it slow or fast so I did and undid the same piece of code 5/6 times in a row and the differential compile still slowed down at one point.
I'm running eslint for vue so it's not broken divs or something similar (as suggested in other posts, I have searched the internet for this with no help to my case). I also tried productionSourceMap: false with no luck.
Any ideas?
Let me know if more info is needed and I will integrate it.

Thanks,
James

英文:

I'm running a project (quite big) with VueJS and npm. Every time I run npm run serve it takes 4/5 minutes, then when I make changes it's very quick to make the differential compile but every 5/6 differential compiles it slows down again for one run and then is fast again (by fast I mean under 10 seconds).
I thought different kind of changes made it slow or fast so I did and undid the same piece of code 5/6 times in a row and the differential compile still slowed down at one point.
I'm running eslint for vue so it's not broken divs or something similar (as suggested in other posts, I have searched the internet for this with no help to my case). I also tried productionSourceMap: false with no luck.
Any ideas?
Let me know if more info is needed and I will integrate it.

Thanks,
James

答案1

得分: 0

npm install -D fibers

Solved it for me, at least for the hotloads which was what the main problem was.

英文:
npm install -D fibers

Solved it for me, atleast for the hotloads which was what the main problem was.

huangapple
  • 本文由 发表于 2023年3月9日 16:42:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/75682175.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定