修改prerender-spa-plugin配置
This commit is contained in:
parent
06ecf20b8b
commit
461b8cd38c
@ -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
|
||||
}
|
||||
})
|
||||
})
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user