Answer the question
In order to leave comments, you need to log in
How to get rid of extra http request?
I understand that the library itself does not need a .map file to work, it is needed for debugging, but I would like to get rid of the error in file downloads, how to make the library not require it to be loaded?
Answer the question
In order to leave comments, you need to log in
I found the answer in the library itself
. In each library, a comment is generated due to which it requests .map files.
//# sourceMappingURL=jquery.min.map;
By deleting them, you can get rid of unnecessary requests)
You need to collect different project builds for development and production environments. For dev cards we generate. We kill them from production. See sideways gulp/webpack.
PS And it's even better to use webpack in the config:
The project is built many times faster than using maps.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question