Search⌘ K
AI Features

Webpack: Loaders & Code Splitting

Explore how to configure Webpack loaders to process files like CSS and images, and understand code splitting to improve your web app’s performance by loading bundles on demand.

We'll cover the following...

Loaders

By default, Webpack can only bundle JavaScript and JSON files. So, if you have dependencies on any other file types, like CSS or images, you’re going to have to write some configuration rules so that Webpack can parse and bundle them.

First, you need to install a loader for a particular file type. For example, if you’re importing a ...