Unverified Commit 02bcfb21 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Add export of homepage when exporting without exportPathMap (#4253)

parent 62f9736c
...@@ -28,6 +28,10 @@ export default class PagesManifestPlugin { ...@@ -28,6 +28,10 @@ export default class PagesManifestPlugin {
pages[`/${pagePath.replace(/\\/g, '/')}`] = name pages[`/${pagePath.replace(/\\/g, '/')}`] = name
} }
if (typeof pages['/index'] !== 'undefined') {
pages['/'] = pages['/index']
}
compilation.assets[PAGES_MANIFEST] = new RawSource(JSON.stringify(pages)) compilation.assets[PAGES_MANIFEST] = new RawSource(JSON.stringify(pages))
callback() callback()
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment