npm i mini-css-extract-plugin

4 Tutorials

Find additional tutorials on Google

Webpack 4: Extract CSS from Javascript files with mini-css-extract-plugin
Since the release of Webpack 4, extract-text-webpack-plugin is completely broken. A lot of people are complaining about their builds failing after upgrading to Webpack 4.

How to configure CSS and CSS modules in webpack
One of the first thing you need to configure in your webpack project is CSS. CSS is so fundamental to a web app —​ almost all web apps needs it. But configuring…

Learn Webpack Pt. 10: Extract CSS & Minify HTML/CSS/JS
This 10-part course teaches Webpack from scratch. It begins with a simple question: “What is webpack?” Quickly we move on to installing Webpack, configuring ...