Open JFGHT opened 5 years ago
Same problem here using Windows 10 and TypeScript. Someone has a workaround, plz?
UPDATE: By setting custom configuration options in vue.config.js
like explained here the plugin actually works, exept it generates an app.html
file (from the main App
component, I beleve) which does not include prerendered <meta>
tags that are correctly injected into index.html
. Maybe this could be avoided in vue.config.js
..? Also, I'm missing .prerender-spa.json
in the root directory of the project (which maybe wasn't generated because of this issue) and I have no idea what registry: undefined
is used for.
My current setup:
pluginOptions: {
lintStyleOnBuild: true,
stylelint: {},
prerenderSpa: {
registry: undefined,
renderRoutes: [
'/',
'/about'
],
useRenderEvent: false,
onlyProduction: true,
headless: true,
customRendererConfig: {
args: ['--auto-open-devtools-for-tabs']
}
}
},
Describe the bug It simply doesn't work after answering the questions.
To Reproduce Steps to reproduce the behavior:
vue add prerender-spa
Additional context Vue version: 2.6.10 Vue CLI version: 3.9.3 OS: Ubuntu 19.04 Using typescript.