Browse Source

chore: don't split small css in /public

tophf 6 years ago
parent
commit
11d3c1c8eb
1 changed files with 4 additions and 4 deletions
  1. 4 4
      scripts/plaid.conf.js

+ 4 - 4
scripts/plaid.conf.js

@@ -38,10 +38,10 @@ exports.pages = {
   },
 };
 
-const splitVendor = name => ({
-  [name]: {
-    test: new RegExp(`node_modules[/\\\\]${name}`),
-    name: `public/lib/${name}`,
+const splitVendor = prefix => ({
+  [prefix]: {
+    test: new RegExp(`node_modules[/\\\\]${prefix}.*?\\.js`),
+    name: `public/lib/${prefix}`,
     chunks: 'all',
     priority: 100,
   },