Webpack 4: Beyond the Basics

Quick, code-driven, follow-along Javascript tutorials of Webpack, Babel, React, Angular, Vue, Redux, SSR, Typescript
Rating: 4.6 out of 5 (851 ratings)
16,091 students
Webpack 4: Beyond the Basics
Rating: 4.6 out of 5 (851 ratings)
16,091 students
Roll your own Hot-reloading Webpack boilerplate from scratch.
Optimize your Frontend Assets for Quick, small Production Code.
Build a Portfolio or Blog with Markdown Based Posts
Deep dives into code, including Webpack Plugins and Loaders
Achieve the "Holy Grail" of Webpack: Server-side Rendering while Code Splitting in Parallel.
Grok the internal workings of Webpack, Babel, Node and more Javascript libraries.
Build a Multi-domain app like SquareSpace, Wordpress MU or Tumblr
Use the Chrome DevTools to debug, inspect and audit the performance of their code.
Secure Your Site in the Cloud with SSL and Heroku


  • You should have some initial training or experience working with code and installing programs.
  • You should have a desire to move quickly and dive deeply into the why and how of these libraries
  • You should know what the command line is and have a code editor and be prepared to follow along.

Welcome to the web hacker's cookbook for building modern javascript applications using the Webpack module loader and asset bundler.

I aim to make this Beyond the Basics course accessible to all skill levels.  It's geared towards people who've seen the basics and messed around a bit, but still don't feel they understand Webpack. Each episode is written and rehearsed beforehand. They're edited so as to make best use of your time. There's not a wasted moment in any of these lessons.

With project centered content building real-world Webpack apps that you and your company can use from the very first line of code.  First we look at the optimal Webpack development setup . Follow and code along as we build a Markdown blog, like Ghost, with Hot Module Reloading, Babel, and debugging in Node. We then move into how Webpack optimizes your production bundles, as we solidify the boilerplate into a portfolio website.

The final project is a doozy. We expand the portfolio site to a multi-domain node rewrite of Wordpress MU, Tumblr or SquareSpace.  So you can run multiple domain names from a single node server process.  We dig into the latest Webpack 4 features, including Server-side Rendering, dynamic imports with "magic comments" and we finish with Universal React components and CSS Chunks in Parallel.  You will definitely want to get to the end of this course.

Along the way I'll discuss all the frameworks and libraries Webpack integrates with.  Whether you're working on an legacy Rails or other backend project or just want to create something beautiful with EJS, Pug, Handlebars, Sass, Less or Stylus, CSS Modules, Angular or Vue JS there's a method and I'll give you the keys to build your site the way you want it.

Thank you for considering this course.  I put everything I had into it. I'll add more lessons every couple of weeks. Please enjoy and reach out to me with any questions.  I've love to help and learn what's still confusing.  

- Law

Who this course is for:
  • Anyone who wants visual, code-driven guidance through more than the usual webpack setup.
  • Anyone who wants to see working examples of real-world webpack weirdness and edge-cases not covered in other courses.
  • Anyone who wants to know way more than their co-worker about modern javascript development.
7 sections • 44 lectures • 6h 3m total length
  • How to get help with this Course
  • Additional Course Materials and Code
  • Up and Running with Webpack Dev Server
  • Our First Loaders for CSS
  • Better Errors and Loaders for HTML & Images
  • Babel Basics
  • Babel Polyfills, Transforms & Presets
  • DIY Webpack Dev Server with Express Middleware
  • Hot Reloading Both Client and Server with Nodemon
  • Debugging Node with Chrome DevTools
  • Hooking Up React
  • Hooking up React - Part 2: Stateful Reloading
  • Hooking up HTML Preprocessors like EJS/Pug/Handlebars
  • Hooking up CSS Preprocessors like SASS/LESS & Stylus
  • Hooking up Js in CSS with Emotion and CSS Modules
  • Hooking up Typescript
  • Hooking up Angular
  • Hooking up VueJS
  • Setup Production Hosting with Heroku
  • Production Ready CSS
  • Stripping development-only Javascript with the DefinePlugin
  • Javascript Minification and Mangling with Babel and Uglify
  • Optimizing All Assets with GZip and Brotili Compression
  • Building out the Blog with React
  • Parsing Markdown for Blogging and Meta Data
  • SplitChunks and the Bundle Analyzer
  • Server-side Render JS with Express and React
  • Server-side Render any Filetype with Webpack
  • Unified Compilation - Part 1
  • Unified Compilation - Part 2
  • Adding Multiple Pages with React Router
  • Dynamic Import Syntax
  • React Universal Components
  • Async JS/CSS Chunk Loading in Parallel (aka the Holy Grail)
  • 2 Strategies for Multiple-Domains in Development
  • Scoping Your Data per Domain
  • Theming CSS per Domain
  • Build out the Articles Pages for our 2 Heroes
  • Redux Basics: The store, the reducer and the action.
  • Fetching Articles from an API with Redux Thunk
  • Redux on the client. Finishing our Article fetch
  • Redux stores in the Server side render
  • Webpack 4 Upgrade Guide
  • What do you want to see next?

Web Architect
Lawrence Whiteside
  • 4.6 Instructor Rating
  • 851 Reviews
  • 16,101 Students
  • 1 Course

Lawrence is a life-long learner who loves teaching, entrepreneurship and remote work. He builds web and mobile apps for a living.  He's been doing it professionally since the mid-90's when both he and the web were very young.  His next challenge is to give back to his developer community by teaching the tools and techniques that are powerfully useful and possibly undocumented. In so doing, he hopes to once again, continue his learning.