This repo contains a small test case which demonstrates an issue introduced with mini-css-extract-plugin
v0.8.1 whereby the context
property for instances of CssModule
is set to null
resulting in errors like:
TypeError: Cannot read property 'includes' of null
After cloning this repository:
- Run
npm install
to install of the required dependencies - Build the test file with
npm run build
ornpx webpack
- This should fail
- Install the previous version of the
mini-css-extract-plugin
:npm i mini-css-extract-plugin@0.8.0
- Run the build again