Webpack in 100 Seconds

preview_player
Показать описание
Webpack in 100 Seconds, by QuickDev.

Topics Covered:
What is webpack?
Is webpack worth learning?
What does webpack do?
Getting started with webpack
Module builders explained.
Webpack Config Explained
Webpack Demo.
Javascript Module Builders

In the old days, all you needed for a website was a HTML file. You add some CSS for styling and Javascript for interaction. And that’s it.

But things have changed. Nowadays, you probably want a UI library like react. Maybe Firebase for storing data. Auth0 for login. Stripe for payments. The list goes on and on.

Some of those modules use commonjs, and some are ES modules. You need to minify your code so that load times are actually decent. And, you need to make sure all your code is included in the right order. It’s a developer’s nightmare.

The solution? Webpack. Webpack is a module builder. It’s main purpose is to bundle many javascript files into a single file. It automatically handles dependencies, transpiling ES and Commonjs modules, and improves load times by minifying your code. You can also use webpack plugins to do a variety of other things, like converting HTML code into Javascript that’s injected on runtime, obfuscating code, and even storing assets in base64 format.

Here I've created a simple to-do list. Let’s see how we can use webpack to convert all my javascript files into one single bundle. First, install webpack from npm. Then, we can create a config file that specifies options to webpack. Now, to actually bundle the code, we can run webpack with a specified config file. There we go, we have the bundle. Now we can import this bundle on our html, and it works!

Subscribe for more content like this (IT'S FREE)

#webpack #javascript #coding
Рекомендации по теме
Комментарии
Автор

Don't listen to the haters. You are doing a great job. I hope to see more content from you!

oasisstoma
Автор

Come the hell on. I keep running into new languages, programs, terms. Each time I need to watch multiple videos, Google it, discuss it with LLM due to the liberal use of Jargon and complicated manner of explaining. Then I look up what Webpacks are; and I get a video of under 2 minutes that is so incredibly simple that everything just makes sense. Great starting point to continue learning about this!

GBXS
Автор

Lol! I was googling Fireship's videos and got here.
But still keep it coming!

dopetag
Автор

Thank you for that short example. Makes a whole lot of sense now

shasankshakya
Автор

Just what I was looking for. Thanks! :)

JuanRuiz-tygc
Автор

Great video, a bit hard to understand but thats not a big issue, keep it up man.

KPDSheriff
Автор

Thank you bro, that was really helpful <3

MostafaAhmed-to
Автор

Didn't know I ordered a discount fireship from wish

christosbinos
Автор

thank you ... i suggest you add subtitles

zakariazinedine
Автор

Good explanation and information. But for god sake use AI voice over.

el-waleedibrahim
Автор

This is what i was looking for nice, you explain better than fireship tbh.

JohnLesterOliverio
Автор

Why y'all trying to copy fireship?

mathiasayivor
Автор

Bro information is good but please remove background noice and improve your english

deadpoolfather
Автор

Give credit to Fireship. You’re doing nothing but blatantly stealing his concept. Don’t.

rwlc
Автор

where do you find many tools? i can’t keep up with the trend i wish to get smarter and learn more useful tools.

cantcode