Answer the question
In order to leave comments, you need to log in
How to make js, css packages for Laravel?
I started to transfer the old project to Laravel 5.4 and there was a desire to move some parts of the js code into separate packages in order to use them in other projects later. And I'm completely confused in all these npm, webpack, bower, elixir, laravel-mix and the rest of a bunch of tools ...
At first I thought that it would be better to make composer packages, because then artisan will throw all the files for me where necessary when updating, but this is a crookedness, because there will be trouble with dependencies, and in general composer for php, as I understand it ...
Then I decided that apparently I need to create npm packages, but here I was already lost, trying to figure out how it is for the web arrange (in the sense of how to add more css there)
Tell me the right solution, or some article on the design of your packages and adding to the project.
Answer the question
In order to leave comments, you need to log in
generally composer for php
# Git endpoint
$ bower install git://github.com/user/package.git
# URL
$ bower install http://example.com/script.js
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question