mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Add export of homepage when exporting without exportPathMap (#4253)
This commit is contained in:
parent
62f9736ca3
commit
02bcfb21c8
|
@ -28,6 +28,10 @@ export default class PagesManifestPlugin {
|
|||
pages[`/${pagePath.replace(/\\/g, '/')}`] = name
|
||||
}
|
||||
|
||||
if (typeof pages['/index'] !== 'undefined') {
|
||||
pages['/'] = pages['/index']
|
||||
}
|
||||
|
||||
compilation.assets[PAGES_MANIFEST] = new RawSource(JSON.stringify(pages))
|
||||
callback()
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue