@css-render/vue3-ssr
Advanced tools
Comparing version 0.15.4 to 0.15.5
@@ -5,5 +5,5 @@ { | ||
"packages/vue3-ssr/.eslintrc.js": "1559494026fc31fb71210238945a7258ae6f78ca", | ||
"packages/vue3-ssr/CHANGELOG.json": "813d04c4751b8d6722d050513654e799ad68603f", | ||
"packages/vue3-ssr/CHANGELOG.md": "04208f8b9bc0e20d5a6732d141fc069acfd1a80c", | ||
"packages/vue3-ssr/README.md": "e1ce1bf1e0a1cc1126ce739ae916f5e1aab28ea7", | ||
"packages/vue3-ssr/CHANGELOG.json": "fbf872a967a5581bab8a41b9c956102ad3e5432b", | ||
"packages/vue3-ssr/CHANGELOG.md": "84933c80389a64037e1d6f81d396e3a8de5b91e7", | ||
"packages/vue3-ssr/README.md": "7468681a85dab028603c6619be25cb32a1adbf6d", | ||
"packages/vue3-ssr/__tests__/__snapshots__/index.spec.ts.snap": "5fc6fb2d25eca250e8c154eb85874d78d912ef90", | ||
@@ -13,3 +13,3 @@ "packages/vue3-ssr/__tests__/index.spec.ts": "fdb46af60d112bb5ca469cc2a04c864976565f2f", | ||
"packages/vue3-ssr/jest.config.js": "5d069fd8508c736e60f34e523eb6db5bd9659ef3", | ||
"packages/vue3-ssr/package.json": "a677f597788dacf5ee7407c880d2cf18ecaae5c6", | ||
"packages/vue3-ssr/package.json": "c413c79e1d731e7e38f008f08b36c4733ec18433", | ||
"packages/vue3-ssr/src/index.ts": "cebf6b02499e77b15dea731a8b86bedde1f7b56f", | ||
@@ -16,0 +16,0 @@ "packages/vue3-ssr/tsconfig.cjs.json": "612b0e1d5f8689f74625ae74c3c6ffc7308656c4", |
@@ -5,2 +5,14 @@ { | ||
{ | ||
"version": "0.15.5", | ||
"tag": "@css-render/vue3-ssr_v0.15.5", | ||
"date": "Sat, 24 Jul 2021 17:34:06 GMT", | ||
"comments": { | ||
"none": [ | ||
{ | ||
"comment": "Update readme" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"version": "0.15.4", | ||
@@ -7,0 +19,0 @@ "tag": "@css-render/vue3-ssr_v0.15.4", |
# Change Log - @css-render/vue3-ssr | ||
This log was last generated on Sun, 13 Jun 2021 04:56:14 GMT and should not be manually modified. | ||
This log was last generated on Sat, 24 Jul 2021 17:34:06 GMT and should not be manually modified. | ||
## 0.15.5 | ||
Sat, 24 Jul 2021 17:34:06 GMT | ||
### Updates | ||
- Update readme | ||
## 0.15.4 | ||
@@ -6,0 +13,0 @@ Sun, 13 Jun 2021 04:56:14 GMT |
{ | ||
"name": "@css-render/vue3-ssr", | ||
"version": "0.15.4", | ||
"version": "0.15.5", | ||
"scripts": { | ||
@@ -15,3 +15,3 @@ "lint": "eslint --fix *.js src/**/*.ts __tests__/**/*.ts", | ||
"babel-jest": "^26.6.3", | ||
"css-render": "~0.15.4", | ||
"css-render": "~0.15.5", | ||
"jest": "^26.6.3", | ||
@@ -18,0 +18,0 @@ "typescript": "~4.2.4", |
@@ -1,4 +0,22 @@ | ||
# @css-render/vue3-ssr [Do not use!!!] | ||
# @css-render/vue3-ssr | ||
It's not finished yet, please don't use it. | ||
## Example | ||
```js | ||
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>` | ||
}) | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
153025
1744
22