/mini-css-extract-bug

Minimal repro for https://github.com/webpack-contrib/mini-css-extract-plugin/issues/548

Primary LanguageJavaScript

To reproduce this bug:

  1. npm install
  2. npx webpack-dev-server
  3. open http://localhost:8080
  4. note that the box on the page is red - because app.css sets it to be red and is imported after leaflet.css
  5. uncomment the maxSize parameter in webpack.config.js
  6. ctrl+c
  7. npx webpack-dev-server
  8. open http://localhost:8080
  9. note that the box on the page is grey - app.css is being loaded first, and then overriden by leaflet.css