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

fix: Add contents of bundleCSS to vendor CSS bundle #273

Merged
merged 1 commit into from
Mar 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}