Skip to content
This repository has been archived by the owner on Oct 15, 2021. It is now read-only.

Commit

Permalink
fix: Add contents of bundleCSS to vendor CSS bundle
Browse files Browse the repository at this point in the history
Fixes #272
  • Loading branch information
mischah committed Mar 18, 2019
1 parent f360d2a commit 5faa710
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions build/webpack/config.entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ import { settings, userSettings } from '../config';
const { config: userConfig } = userSettings;

export const entry = {
app: `${path.join(__dirname, '../../', settings.sources.app)}index.js`,
...getVendorCSS()
app: [
...getVendorCSS(),
`${path.join(__dirname, '../../', settings.sources.app)}index.js`
]
};

function getVendorCSS() {
Expand All @@ -17,8 +19,8 @@ function getVendorCSS() {
)
);
if (!vendorCSS.length) {
return false;
return [];
}

return { vendor: vendorCSS };
return vendorCSS;
}

0 comments on commit 5faa710

Please sign in to comment.