Getting Ready

For this recipe, you will need to install the following packages:

    npm install webpack-dev-server css-loader extract-text-webpack-plugin@v4.0.0-beta.0 style-loader

If you want to use Sass in your project, you have to install:

    npm install sass-loader node-sass 

If you prefer Stylus, you'll need the following:

    npm install stylus-loader stylus

Or if you like LessCSS, install this:

    npm install less-loader less

Get React Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.