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?
YES. It is all right. I just tested it with laravel 5.6.