From 3d7b28b6da6a8984a29dfe38edf587ca27fa42b5 Mon Sep 17 00:00:00 2001 From: Brent Jackson Date: Sun, 10 Mar 2019 21:55:54 -0400 Subject: [PATCH] Add 404.html to build output --- packages/mdx-deck/lib/build.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/mdx-deck/lib/build.js b/packages/mdx-deck/lib/build.js index 72d53f1..2f8b63d 100644 --- a/packages/mdx-deck/lib/build.js +++ b/packages/mdx-deck/lib/build.js @@ -53,7 +53,7 @@ const build = async (opts = {}) => { const config = createConfig(opts) const App = await getApp(config, opts) - const { head } = await renderHTML(App) + const { body, head } = await renderHTML(App) config.mode = 'production' config.output = { @@ -63,6 +63,10 @@ const build = async (opts = {}) => { config.plugins.push( new HTMLPlugin({ context: { head }, + }), + new HTMLPlugin({ + filename: '404.html', + context: { head }, }) )