修改prerender-spa-plugin配置

This commit is contained in:
cebgcontract 2022-03-02 13:52:28 +08:00
parent 06ecf20b8b
commit 461b8cd38c

View File

@ -1,5 +1,6 @@
const path = require('path')
const PrerenderSPAPlugin = require('prerender-spa-plugin')
const Renderer = PrerenderSPAPlugin.PuppeteerRenderer
const name = 'CEBG'
@ -39,7 +40,14 @@ module.exports = {
new PrerenderSPAPlugin({
indexPath: path.resolve('dist/index.html'),
staticDir: path.resolve('dist'),
routes: ['/nft', '/gameplay', '/tokenomic', '/roadmap', '/team']
routes: ['/', '/nft', '/gameplay', '/tokenomic', '/roadmap', '/team'],
renderer: new Renderer({
headless: true,
defaultViewport: {
width: 1920,
height: 1080
}
})
})
)
}