vuetifyjs / webpack-ssr

Vuetify Webpack SSR Template
https://vuetifyjs.com/overview
62 stars 28 forks source link

Generating meta-data for the preFetch is not working #11

Closed awronski closed 7 years ago

awronski commented 7 years ago

When the page is rendered on the servers side the meta data are not filled:

<meta name="description" content="<!-- DESCRIPTION -->">
<meta name="keywords" content="<!-- KEYWORDS -->">

And the App.vue:

<script>
    export default {
        mounted () {
            this.$emit('view', this.meta())
        },

        preFetch () {
            return this.methods.meta()
        },

        methods: {
            meta () {
                return {
                    title: 'Test',
                    description: 'desc test',
                    keywords: keywords, keywords'
                }
            }
        }
    }
</script>