Answer the question
In order to leave comments, you need to log in
Did webpack build the js file correctly?
Good evening everyone.
I am learning webpack. So that all works for me, but here there was a question.
I imported jQuery and looked at what happened in the final file.
As seen on the screenshot. jquery is imported, and webpack added sizzle.js during the build. I'm just used to the fact that if I include jQuery, then it's always one file and the question arises whether webpack added an extra file to the output file.
Answer the question
In order to leave comments, you need to log in
webpack has nothing to do with it, jquery itself uses this library to implement CSS selectors.
It is divided into a separate library so that it can be used outside of jquery as needed.
When you connect it without webpack, it pulls this lib with it in the same way.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question