Bundling your Front-End with webpack
summary
Refactors a small weather app that pulls in jQuery and an SVG, sets entry point app.js and outputs to a dist folder, then runs webpack to build a dependency graph and produce bundles. Uses a url-loader with 10KB inline limit so the SVG becomes inlined SVG as base64 instead of a separate request, and imports jQuery into the bundle. Demonstrates bundle size at ~275KB and then runs webpack -p uglify/minify to shrink the production bundle and show it still works.
AI-written summary · about
chapters (9)
- 0:00Intro
- 0:25What is webpack
- 1:29How does webpack work
- 2:34Why use webpack
- 6:13Task runners vs webpack
- 7:40Core concepts
- 8:29Loaders
- 9:49Demo
- 10:16Mockup
related talks
01h 03mIntroduction to webpack
30mWebpack – The React Parts
23mStreamline your code with webpack
34mGift Wrap Your Code with Webpack
36mUnbundling the JavaScript module bundler
52m10KB or Bust: The Delicate Power of Webpack and Babel
26mWeb Performance in modern JavaScript world
08mHow to Reduce Your Vue Bundle Size With Webpack
