saberland/saber

mini-css-extract-plugin run during yarn dev #473

pxwee5 posted onGitHub

<!-- Please don't delete this template or we'll close your issue -->

<!-- Before creating an issue please make sure you are using the latest version of Saber. -->

<!-- Issues which contain questions or support requests will be closed. -->

<!-- Please ask questions via following several ways. -->

<!-- https://chat.saber.land/ -->

<!-- https://stackoverflow.com/questions/ask?tags=saberjs -->

Bug report

Setting extractCSS will not show any css rules in development.

Steps to reproduce

  1. Set build.extractCSS to true
  2. yarn dev
  3. Style missing.

image

At config.css.js, vue-style-loader should be run on development and mini-css-extract-plugin should be run on production.


I tested in https://github.com/saberland/saber/tree/master/examples/extract-css and it works (css is extracted into a single file).

posted by egoist over 5 years ago

closed with 1cc0757136698c30d4021a9b3c773983fb6a1253

posted by MarchWorks over 5 years ago

Fund this Issue

$0.00
Funded

Pull requests