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:
parent
2de5b724b5
commit
3d7b28b6da
@ -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 },
|
||||
})
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user