E
E
Edhunter2021-12-22 01:25:23
webpack
Edhunter, 2021-12-22 01:25:23

What you need to know before learning Webpack?

JS basics or basics + more advanced JS?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
Undefined, 2021-12-22
@Undefined

You need to set a goal for yourself why you need webpack)
webpack is just a wrapper over a bunch of plugins and loaders. The default (for example) vue cli project already sets up webpack plugins and a lot of loaders. You can view this for example through yarn vue-cli-service inspect
For example, set yourself the goal of achieving the maximum possible optimization of the site, Start with css/html/js. (i.e. CssMinimizerWebpackPlugin/HtmlWebpackPlugin/TerserPlugin). Try setting optimizers so that code after them doesn't need obfuscators.
Play around with loaders making them only work as preprocessors. Perhaps in the process you will encounter the intricacies of asynchronous js. Play around with SEO. In the process, you will probably encounter a lack of documentation and learn how to parse the code of other people's loaders. While I'm somewhere at this stage))
PS: no way without WEBPACK. Not at all. No, and even so without him nothing

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question