Learn webpack

A handbook for webpack beginners

Buy Now for $24

You cant learn webpack from shiny tools

If you ask on reddit or discord how to approach the frontend ecosystem they will tell you to learn one thing at once.

A common recommendation is to start with JavaScript, and then move on to React when you are ready. You should use create-react-app (CRA) to create your project. You can learn webpack “later”.

The problem with this strategy is that later never comes. And suddenly you have grown out of CRA and need to extend it. So you eject your app and get this thrown in your face:

You get not only one – but three webpack config files. At a total of 989 lines of code. And that’s just the webpack configs. There are more config files and build scripts that got generated for you. That is overwhelming.

The webpack config file is well commented, but it doesn’t help when you have no idea how webpack works.

You can’t learn webpack by reading a huge config file.

A strategy for learning webpack that works

You already know how to learn a new language or tool:

  1. You start by reading about the most basic features.
  2. Then you write some code yourself implementing these basic features in a small project.
  3. It works! Your confidence grows.
  4. Now you are ready for some more advanced concepts. You read about it and repeat the process.

An essential aspect of learning programming is to write code yourself. Only reading is not enough.

You know how this works because you have already learned JavaScript, React and probably lots of other languages and tools.

The feeling of knowing how everything works – including the build setup – in your app is awesome.

With such depth in your skills and knowledge, you are a frontend dev that knows how to set up any kind webpack project. You are able to go in and upgrade, tweak and optimize existing webpack projects.

New book: Learn webpack

In this book you'll start with a clean slate - just you and an empty text editor. You will learn step-by-step how to build the webpack.config.js, package.json, .babelrc and all other files required to build a modern web apps with webpack.

This is a complete and up-to-date resource for webpack beginners.

What does the book cover?

This book is a handbook for creating enterprise-ready production apps with webpack. These are the main topics covered:

  • Why do you need webpack?
  • Getting started tutorial
  • What happens under-the-hood? A deep dive into loaders, plugins, manifests, etc.
  • An introduction to NPM and package.json
  • How to configure separate prod and test configs
  • More than one output for SSR and public/admin sites
  • Create an awesome dev experience
  • Optimized production builds to get a small bundle size
  • Code splitting to make faster apps
  • Caching for quicker load speeds
  • What is tree shaking and how to use it to create fast apps
  • How to enable source maps for better debugging experience
  • A bunch of recipes for React, Vue, Typescript, etc
Read the full table of contents here

The book is made up of three parts:

Part 1: The Getting started tutorial You'll jump straight into coding your first React app with webpack. You start from scratch and you will finish up with a complete webpack project that you can put in production. This tutorial is designed to get you up and running quickly.

Part 2: Production-ready apps with webpack You’ll learn how to configure an awesome developer experience that makes you super productive and use tools and techniques to get the lowest possible bundle size for the production build. You’ll also learn about the internals of webpacks. Loaders, plugins, manifests and chunks will no longer feel like magic

Part 3: Recipes Even the webpack pros have to look up how to configure specific things like Vue, React, Typescript, etc. In this part of the book, you will have recipes that you can use to create the app you want to create - so you don't have read long and outdated medium-articles to get the code you need.

Zero fluff guaranteed

This is a short book - only 100 pages. It's to the point. And it has absolutely zero fluff - just actionable advice.

Buy Learn webpack

As a developer, the best investment you can make is to invest in your skills. When you know webpack you will be a more complete frontend dev. It will set you up for getting promotions.

And if you're looking for a job, talking fluently in interviews about how to use code splitting and tree shaking with webpack will make you stand out from other frontend devs.

Book details

Length:100 pages
Format:PDF and EPUB
Webpack version:4

Buy Now for $24

It's time for you to take back control of your webpack config!

Still not convinced?

It can also be good to know that I offer a 30-day money back guarantee if you are not happy with the book.

About the author

Hi, I'm Jakob Lind (@karljakoblind). I'm a full stack developer and independent consultant. I have 10 years of experience as a professional dev and I have been coding as a hobby since I was a kid.

I’m a strong believer in sharing and helping others. I have a blog and I work on open source projects.

The best way to learn how to program is to do hard and deep work. There are no shortcuts.


Q: What if I don't like the book?

A: I offer a 30-day no-questions-asked money-back-guarantee

Q: What version of webpack do the book use?

A: It's written for the latest version of webpack: webpack 4.

Q: But soon there will be a new version of webpack and this book will be outdated?

A: Included in the price is a lifetime of updates! Whenever I update the book because there is a new version of webpack or if i extend the book with new material, you will get the update straight in your inbox with no additional cost.

Q: What formats do I get?

A: You'll get PDF and EPUB. If I some time in the future offer more formats, you will get them also of course.

Q: How many pages is it?

A: 100 pages. It's short and sweet so that you'll actually read it.