Browse Source

fix: revert to embedded styles in Vue2

mini-extract-css says it couldn't preserve the order
tophf 3 years ago
parent
commit
7f2a6dff07
1 changed files with 7 additions and 0 deletions
  1. 7 0
      scripts/plaid.conf.js

+ 7 - 0
scripts/plaid.conf.js

@@ -65,3 +65,10 @@ exports.optimization = {
     },
   },
 };
+exports.styleOptions = {
+  /* Files in extensions aren't cached so there's no point in extracting separate css,
+   * other than minifying, but the gain is negligible. P.S. Extracting+inlining back in html
+   * doesn't keep the correct order of style elements which breaks appearance when
+   * using style-ext-html-webpack-plugin or html-inline-css-webpack-plugin. */
+  extract: false,
+};