fastify-vue

1.1.0 • Public • Published

fastify-vue

Vue.js Server-Side Rendering (SSR) Fastify plugin

const fastifyVue = require('fastify-vue')
const { createBundleRenderer } = require('vue-server-renderer')
 
app.register(fastifyVue, {
  templatePath: join(__dirname, 'server/index.html'),
  distPath: join(__dirname, 'dist'),
  clientConfig,
  serverConfig,
  createBundleRenderer,
  stats: { all: false, assets: true, colors: true }
})

Readme

Keywords

Package Sidebar

Install

npm i fastify-vue

Weekly Downloads

0

Version

1.1.0

License

ISC

Unpacked Size

5.75 kB

Total Files

3

Last publish

Collaborators

  • ianwalter