Why use npm with laravel?

Since npm is the package manager for node, I often see that it is used with laravel project templates, but I can not explain why?

For example, this laravel-5-boilerplate instructs npm installas part of the steps to set up a project.

You can also find other examples of using npm with laravel ..

Can someone explain to me?

+4
source share
2 answers

I made this template. This command is specific for loading dependencies for the Laravel Elixir package ( http://laravel.com/docs/5.0/elixir ). But it has many different uses.

Elixir docs explain this very well.

+1
source

npm . , . laravel , :

gulp - , minifing css, js-.

laravel-elixir - gulp, , laracasts . , .

js/css, .

+5

Source: https://habr.com/ru/post/1588994/


All Articles