A
A
Andrey2019-02-08 21:30:45
JavaScript
Andrey, 2019-02-08 21:30:45

How to understand what is not needed in bundle.js?

I always order adaptive layout on freelance.
But this time I was given an adaptive layout of only 5 html pages with bundle.js, which is not only obfuscated, but also hangs 2.6mb.
421.jpg
How can it be reduced? as I understand it, he assembled a webpack with just everything that is possible and 90% of it is not used in layout from there?
ps I never worked with vp, I always got a ready-made layout, the maximum bundle hung 300-400kb, and then bang 2.6mb.
Briefly explain, if possible, how to cut out everything unnecessary from it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wentixon, 2019-02-08
@VELIK505

To figure out what he stuffed there, you need the source code, since the bundle is equivalent to a binary, it is impossible to work with it, this is the final product. And webpack has nothing to do with it, it's a great tool. Yes, it slightly increases the size of the script, but this is not significant. So look for the sources and see what modules are present in them

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question