Laravel Homestead - where to run npm (virtual machine vs. Windows 10 host)

爱⌒轻易说出口 提交于 2019-12-11 11:38:54

问题


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:


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



来源:https://stackoverflow.com/questions/48516218/laravel-homestead-where-to-run-npm-virtual-machine-vs-windows-10-host

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!