Learn Webpack Pt. 6: Cache Busting and Plugins

preview_player
Показать описание
This 10-part course teaches Webpack from scratch. It begins with a simple question: "What is webpack?" Quickly we move on to installing Webpack, configuring it, and adding loaders for CSS, SASS, HTML, and Files. The course covers cache busting, setting up a dev server, and splitting up your development and production config files. We incorporate multiple Webpack plugins including clean-webpack-plugin, mini-css-extract-plugin, optimize-css-assets-webpack-plugin, terser-webpack-plugin, and html-webpack-plugin. It's a lot of stuff :)

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

What cruel person could have downvoted this pure gold content? Must be a up-side-down-mobile issue or smth.

IWasHereFirst
Автор

This series has solved so many puzzles. So thankful.

ziekdesign
Автор

Awesome series first I was so Intimidated from loaders and plugins, but now its all making sense thanks you so much man :), just one Q please:
Does the browser cache CSS automatically?
Cheers

osherezra
Автор

why did you not use `html-loader`, isn't that supposed to be used for loading html?

frfou
Автор

In webpack 5, i believe you need to use [contenthash] with an "h" instead of an "H" or it won't work

diegoh.ohagan
Автор

If [contentHash] doesn't work for you try [contenthash] with lower h.

KarahannAe
Автор

This series is a punch in the face for me. I've been a React developer for 2 years, every time I start a new project, the configurations are already tackled by create-react-app. It makes me feel webpack is scary. Not now. Thanks a lot.

asadsalehumar
Автор

For those people whose [contentHash] is not working, use [contenthash] instead

shyamiy
Автор

If you're concerned that the script is being put in <head>, you can add parameter inject: 'body' to the config like this:
plugins: [new HtmlWebpackPlugin({
template: "./src/template.html",
inject: 'body'
})],

parampampam
Автор

In part6, be sure to use contenthash all lowercase instead of contentHash

mangaboss
Автор

Really this playlist has taken away all my fears about webpack. Thank You Colt!

official.mhm
Автор

Best Webpack course on YouTube. Thank you!

mohamedyoussef
Автор

Thank you so much, Colt! Your videos made me like web development. I really appreciate your valuable and professional content! And this video just helped me with browser caching issues after each deployment.

joseff
Автор

I am using requirejs, how to import dynanic filename in requirejs dependency?

techno_abhishek
Автор

Its nice Colt but I am lookig for the solution, how can we implement this in angular

KnownTechnical
Автор

hi, how would cashing work if your are using a cdn to host your site like cloudflare. cloudflare caches a version of your site on their servers, so when certain users request your site, they are getting the cache version of cloudflare. So how can you make cloudflare fetch your code updates and update its cache?

kandebabou
Автор

Thank you for this course. You have made webpack so easy to understand!

brunaleao
Автор

10:24 I don't think the <meta> tag that is being deleted is the bootstrap cdn link.

sydrawat
Автор

This series is awesome. I never thought of that I will understand webpack in such details. Thanks a lot. ❤️

PoojaSharma-btzh
Автор

You have answered a lot of questions running over my head. Awesom and Thanks.

navin-moorthy