From 71db0bf2a84f09f16592beaf16c2a05ad0270230 Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 11 Aug 2016 18:13:16 -0500 Subject: [PATCH] add diagram in ssr docs --- packages/vue-server-renderer/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/vue-server-renderer/README.md b/packages/vue-server-renderer/README.md index 825116dd..b2f47132 100644 --- a/packages/vue-server-renderer/README.md +++ b/packages/vue-server-renderer/README.md @@ -178,6 +178,8 @@ Instead, it's more straightforward to run our app "fresh" for each request, so t ## Creating the Server Bundle +screen shot 2016-08-11 at 6 06 57 pm + 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: 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).