@css-render/vue3-ssr
## Example
Last updated 4 years ago by 07akioni .
MIT · Original npm · Tarball · package.json
$ cnpm install @css-render/vue3-ssr 
SYNC missed versions from official npm registry.

@css-render/vue3-ssr

Example

import { createSSRApp } from 'vue'
import { renderToString } from '@vue/server-renderer'
import { setup } = from '@css-render/vue3-ssr'

// For each request, you need to create a new app
const ssrApp = createSSRApp(App)
const { collect } = setup(ssrApp) 

renderToString(ssrApp).then(appHtml => {
  const css = collect()
  const page = `<!DOCTYPE html>
  <html>
    <head>${css}</head>
    <body><div id="app">${appHtml}</div></body>
  </html>`
})

Current Tags

  • 0.15.8                                ...           latest (4 years ago)

20 Versions

  • 0.15.8                                ...           4 years ago
  • 0.15.7                                ...           4 years ago
  • 0.15.6                                ...           5 years ago
  • 0.15.5                                ...           5 years ago
  • 0.15.4                                ...           5 years ago
  • 0.15.3                                ...           5 years ago
  • 0.15.2                                ...           5 years ago
  • 0.15.1                                ...           5 years ago
  • 0.15.0                                ...           5 years ago
  • 0.14.1                                ...           5 years ago
  • 0.14.0                                ...           5 years ago
  • 0.13.9                                ...           5 years ago
  • 0.13.8                                ...           5 years ago
  • 0.13.7                                ...           5 years ago
  • 0.13.6                                ...           5 years ago
  • 0.13.5                                ...           5 years ago
  • 0.13.4                                ...           5 years ago
  • 0.13.2                                ...           5 years ago
  • 0.13.1                                ...           5 years ago
  • 0.13.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 2
Last Month 2
Dependencies (0)
None
Dev Dependencies (12)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |