Wait for prerender trigger to pre-render pages.

This commit is contained in:
Dillon Kearns 2019-08-14 14:16:28 -07:00
parent 572e3ccb6c
commit 6a6668cf8b

View File

@ -61,7 +61,8 @@ function webpackOptions(routes) {
// staticDir: "./dist",
staticDir: path.join(process.cwd(), "dist"),
// Required - Routes to render.
routes: routes
routes: routes,
renderAfterDocumentEvent: "prerender-trigger"
})
],
output: {