Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Using Webpack
Rating: 4.5 out of 5(6 ratings)
94 students

Using Webpack

Compiling and serving sophisticated Node applications using Webpack
Created byDaniel Stern
Last updated 9/2021
English

What you'll learn

  • Installing Webpack using NPM
  • Understand and compare Webpack versions
  • Compile JSX (React) with Webpack
  • Create and modify webpack configuration files

Course content

3 sections22 lectures1h 35m total length
  • What you ought to expect from this course0:49
    • Understand basics – what Webpack does, how it is installed, how it is used

    • All manner of practical webpack skills

    • Installation

    • Configuration

    • Using it to compile

    • Watching files

    • Much more!

    • Using Webpack to build an application

  • Why Webpack?0:55

    Browsers understand plain JavaScript

    • Not TypeScript

    • Not JSX

    • Not React

    Webpack turns complex applications into a single file. This file can run in the browser

  • Course Roadmap1:22
    1. Understand basics of how and why Webpack is used

    2. Install and configure Webpack

    3. Use Webpack Dev Server to optimize workflow

    4. Master loading ES6, JSX and CSS files with Webpack

    5. Learn to adapt Webpack to different filetypes (example: YAML)

    6. Apply: Create a reasonably sophisticated game that works in the browser but is written using an orderly assortment of files. (example: Hangman)

  • How Does Webpack Work?3:25
    • An entry file is loaded into memory

    • Any files it requires are loaded in

    • Code is transformed in format browsers understand

    • Non code-files, like CSS, can be embedded in code

  • Understanding Loaders2:27
    • Loaders are plugins for Webpack that let it interpret specific kinds of files

    • Without a loader for, e.g, .jsx files, Webpack will throw an error

    • Babel-loader typically used for .jsx

    • Loaders for every kind of file available (or can be developed)

  • Webpack Versions6:22
    • Webpack is constantly releasing new versions

    • Performance

    • Supporting new techniques / files

    • Using latest best practices

    • Webpack 2: Old school, but reliable

    • Webpack 3: Commonly used but imperfect

    • Webpack 4: Sophisticated but hard to understand

    • Webpack 5: Bleeding Edge

    • Selecting the appropriate Webpack version varies from project to project

    • If one version was appropriate for every project, we wouldn’t have so many different versions

    • Webpack 2 or 3 when you inherit a project that already uses it

    • Webpack 4 when you are starting a new project where reliability and consistency of tools is a priority

    • Webpack 5 when you are starting a greenfield project and have room for a mistake or two

  • Summary0:44
    • Webpack bundles code

      • Input: Varied source files (JSX, TS, CSS, etc)

      • Output: A single, highly compatible JS file

    • Webpack can load and transform many different kinds of files

      • TS, JSX, CSS and various other files via loaders

    • A wide variety of Webpack versions exist

      • For most tasks, v3, v4 or v5 are a good choice

Requirements

  • Beginner JavaScript
  • Beginner CSS
  • Beginner Node
  • Beginner React (Optional)

Description

JavaScript is the only programming language all web browsers natively understand.

But what happens when your application gets too complex to effectively scale and be maintained when it is written as a loosely-connected array of plain JavaScript files?

The solution, of course, is to write your application using more sophisticated tools like TypeScript, React, LESS, JSON, and more. And to bundle all these non-JavaScript files into one clean package that browsers can understand you need a special tool like Webpack.

In this course, we'll learn everything necessary to build a deployment ready application with Webpack. Some of the key skills we'll be covering include:

  • Installing Webpack using NPM

  • Differentiating between Webpack versions

  • Creating a Webpack configuration file and editing it

  • Serving Webpack applications in a development context using Webpack Dev Server

  • Compiling React applications to JavaScript

  • Compiling CSS to JavaScript

  • Compiling text files (YAML) to JavaScript objects

  • ... much more

We'll be combining all these skills into a single Webpack application which you can build in real time while taking the course. This fun and interactive application will impress your peers and can be used as a base to practice or develop any Webpack skills you wish!

Don't hesitate. Don't even think about it. Sign on up and get ready to use Webpack and kick-start your career in any of the following high-demand fields:

  • Back-end developer

  • Full-stack developer

  • JavaScript developer

  • Node developer

  • Dev-ops and CI specialist

“No gains without pains.” - Benjamin Franklin

Who this course is for:

  • Developers who wish to interact and contribute better to current projects that use Webpack
  • Developers familiar with other bundling tools (grunt, gulp) who wish to update their workflow
  • Junior developers who want to start moving towards a more intermediate / dev-ops oriented role