Jump to content

How to add a global library to PrestaShop


compsoul.dev

Recommended Posts

I have several proprietary modules, each of these modules has its own JS files. Unfortunately, these files are repeated and the best method would be to add them to one common location. However, how is this best done? I was thinking of creating a separate module that would contain only the JS files responsible for my modules. However, this has a downsides, you would have to install a separate module for the original module to work. Another way would be to install common files in a common location, but each module would then keep its files in its own assets. When updating the JS library, this would be tiresome when I would have to update each module separately. Does anyone have a way to do this?

Edited by compsoul.dev (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...