P
P
Pavel K2021-04-04 23:54:10
Laravel
Pavel K, 2021-04-04 23:54:10

How to rebuild webpack from vendor library in Laravel or how to resolve version incompatibility?

Greetings!
There is Laravel8, installed the required library through Composer.
It has its own compiled resources, which end up in the public/packages/.... folder and are connected.
The problem is that among the included resources there is an old version of Vue. I would like to somehow update to the one that is already used in the current project.
The question is how to do it (without waiting for corrections from the author and without making a fork, etc.)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
k2lhu, 2021-04-05
@PavelK

Almost any package under laravel has the main ServiceProvider package file, which specifies where to look for view files, js, css, facade connection and component. Most likely, when installing this package, you even added the connection of the new ServiceProvider to the list of all providers. And it will probably be enough to inherit from the base ServiceProvider class inside the package, connect your inherited class instead of the one proposed by the developer and make the necessary changes to your provider by changing the necessary dependencies.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question