mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-31 07:32:53 +00:00
fix(v2): missing scripts/css on statically rendered html (#1329)
This commit is contained in:
parent
a70d9b6720
commit
8dd6bc1082
|
|
@ -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$/));
|
||||
|
|
|
|||
Loading…
Reference in New Issue