Is it possible to compile Vue.js templates to static HTML and CSS files?

后端 未结 4 902
时光取名叫无心
时光取名叫无心 2021-02-05 06:33

Recently I\'ve fallen in love with Vue.js\'s single file components. It\'s so much nicer to have a component\'s template and styles close to each other, and I\'m finding I write

4条回答
  •  礼貌的吻别
    2021-02-05 07:07

    From the official vuejs guide:

    If you’re using Webpack, you can easily add prerendering with the prerender-spa-plugin. It’s been extensively tested with Vue apps - and in fact, the creator is a member of the Vue core team.

提交回复
热议问题