fix(v2): missing scripts/css on statically rendered html (#1329)

This commit is contained in:
Endilie Yacop Sucipto 2019-04-01 15:02:45 +07:00 committed by GitHub
parent a70d9b6720
commit 8dd6bc1082
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,6 +46,8 @@ export default function render(locals) {
const bundles = getBundles(reactLoadableStats, modules);
const assets = [
...webpackClientStats.assetsByChunkName.main,
...webpackClientStats.assetsByChunkName.common,
...webpackClientStats.assetsByChunkName.vendors,
...bundles.map(bundle => bundle.file),
];
const scripts = assets.filter(value => value.match(/\.js$/));