navarroaxel / webpack-css-hot-bug

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

webpack-css-hot-bug

This repo exists to show a css-hot-loader bug in webpack@4.

Related issues

shepherdwind/css-hot-loader#37

Reproducing the bug

After clone this repo you should run the following commands:

yarn install
yarn start

Open http://localhost:3000 and you can see the TypeError on the console of the DevTools when the page loads the main.bundle.js.

The error is fixed in the bundle when a hot change is made to the SCSS file and the bundle is reloaded.

About


Languages

Language:JavaScript 82.9%Language:HTML 10.7%Language:CSS 6.4%