A
A
Andrey2020-06-28 12:10:39
Composer
Andrey, 2020-06-28 12:10:39

How are libraries deployed via composer with css js files (resources)?

Added composer to the project, installed the library. The library code assumes that some of the files will be available via http. Vendor, of course, is above the http root. How to do it right? I have not figured out how to ask Google a question.

5ef85ca337cb6195247063.png

Tell me, pzhlst, what kind of questions to google such questions?

What is the right thing to do in such a situation?

I understand that you don’t need to copy files) I know that you can fasten symlinks, register a proxy in the server (apache), you can think of something else, but I want to learn established practices.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2020-06-28
@AndryG

It all depends on the framework. There are tools that make working with assets convenient - in short: they load data or numerals on them into a public folder.
Inside the framework (any) this is usually done easily.
Symfony Assets
A selection of similar tools

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question