英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论