No. Webpack and Mix are development dependencies.
Oct 1, 2017
3
Level 1
Does Laravel Need Nodejs?
I am quite new to Laravel and I was going through the Laravel 5.4 From Scratch series and in the episode about Laravel Mix, Jeffery says that Webpack and Laravel Mix are both Node dependencies. I do have Npm and Node installed on my PC so there's no issue there but I want to know if Nodejs should be installed in the server once I deploy my Laravel application as well?
Level 15
It depends. If your compiling assets on the server or if you are compiling them locally and then pushing to the server. If you are compiling them on the server then you would need node/npm/yarn on it.
4 likes
Please or to participate in this conversation.