A
A
Andrey Dyrkov2015-05-02 19:12:14
JavaScript
Andrey Dyrkov, 2015-05-02 19:12:14

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

2 answer(s)
A
Andrey Dyrkov, 2015-05-02
@VIKINGVyksa

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)

L
Lesha Fedoseev, 2015-05-02
@alexfedoseev

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 question

Ask a Question

731 491 924 answers to any question