Laravel Homestead - where to run npm (virtual mach

2019-08-12 17:30发布

I am running a Laravel Homestead Vagrant box on Windows 10 host. Currently, I am compiling assets (running npm run dev) inside the vm. It's pretty slow at times, and I usually have problems with symlinks, running watchers etc. - in short, there is more configuration required that I think is necessary,

Would it be better to compile assets directly on the host (Windows) machine? Are there any 'gotchas' I should have in mind? Does it really matter on what machine JavaScript assets are compiled? That is, will the compiled version work 'in production' no matter where I compiled it?

1条回答
Animai°情兽
2楼-- · 2019-08-12 18:31

YES. It is all right. I just tested it with laravel 5.6.

查看更多
登录 后发表回答