R
R
rd1002021-09-08 11:46:55
webpack
rd100, 2021-09-08 11:46:55

How to build js files, but leave one always connected?

How to collect js files so that they are all gathered into one file, but make an exception for one file, which also saved the export to this file, but was not pulled there?
Those. as it works, it will be updated and export already updated data.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2021-09-08
@delphinpro

It is better to make the data file in json format and pull it up with Ajax when loading.
Also, no one forbids connecting a regular js file to the page, the variables from which will be in the global scope (window), from where they can be pulled into your main script.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question