Skip to content

Commit 71db0bf

Browse files
committed
add diagram in ssr docs
1 parent ea77ac2 commit 71db0bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/vue-server-renderer/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ Instead, it's more straightforward to run our app "fresh" for each request, so t
178178

179179
## Creating the Server Bundle
180180

181+
<img width="973" alt="screen shot 2016-08-11 at 6 06 57 pm" src="https://cloud.githubusercontent.com/assets/499550/17607895/786a415a-5fee-11e6-9c11-45a2cfdf085c.png">
182+
181183
The application bundle can be generated by any build tool, so you can easily use Webpack + `vue-loader` with the bundleRenderer. You do need to use a slightly different webpack config and entry point for your server-side bundle, but the difference is rather minimal:
182184

183185
1. add `target: 'node'`, and use `output: { libraryTarget: 'commonjs2' }` for your webpack config. Also, it's probably a good idea to [externalize your dependencies](#externals).

0 commit comments

Comments
 (0)