1
1
mirror of https://github.com/jxnblk/mdx-deck.git synced 2024-11-29 13:58:02 +03:00

Add 404.html to build output

This commit is contained in:
Brent Jackson 2019-03-10 21:55:54 -04:00
parent 2de5b724b5
commit 3d7b28b6da

View File

@ -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 },
})
)