Skip to content

Commit 60caca0

Browse files
MachinisteWebyyx990803
authored andcommitted
Fix hello and webpack cases (#39)
Signed-off-by: Bruno Lesieur <[email protected]>
1 parent 779373a commit 60caca0

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Diff for: en/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Before using SSR for your app, the first question you should ask it whether you
3737

3838
If you're only investigating SSR to improve the SEO of a handful of marketing pages (e.g. `/`, `/about`, `/contact`, etc), then you probably want __prerendering__ instead. Rather than using a web server to compile HTML on-the-fly, prerendering simply generates static HTML files for specific routes at build time. The advantage is setting up prerendering is much simpler and allows you to keep your frontend as a fully static site.
3939

40-
If you're using Webpack, you can easily add prerendering with the [prerender-spa-plugin](https://github.com/chrisvfritz/prerender-spa-plugin). It's been extensively tested with Vue apps - and in fact, [the creator](https://github.com/chrisvfritz) is a member of the Vue core team.
40+
If you're using webpack, you can easily add prerendering with the [prerender-spa-plugin](https://github.com/chrisvfritz/prerender-spa-plugin). It's been extensively tested with Vue apps - and in fact, [the creator](https://github.com/chrisvfritz) is a member of the Vue core team.
4141

4242
## About This Guide
4343

Diff for: en/SUMMARY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@
2424
- [basedir](api.md#basedir)
2525
- [cache](api.md#cache)
2626
- [directives](api.md#directives)
27-
- [Webpack Plugins](api.md#webpack-plugins)
27+
- [webpack Plugins](api.md#webpack-plugins)

Diff for: en/api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ See [Introducing the Server Bundle](./bundle-renderer.md) and [Build Configurati
211211

212212
As an example, check out [`v-show`'s server-side implementation](https://github.com/vuejs/vue/blob/dev/src/platforms/web/server/directives/show.js).
213213

214-
## Webpack Plugins
214+
## webpack Plugins
215215

216216
The webpack plugins are provided as standalone files and should be required directly:
217217

Diff for: en/basic.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const renderer = require('vue-server-renderer').createRenderer()
3030
renderer.renderToString(app, (err, html) => {
3131
if (err) throw err
3232
console.log(html)
33-
// => <div data-server-rendered="true">hello world</div>
33+
// => <div data-server-rendered="true">Hello World</div>
3434
})
3535
```
3636

@@ -134,7 +134,7 @@ const context = {
134134
}
135135

136136
renderer.renderToString(app, context, (err, html) => {
137-
// page title will be "hello"
137+
// page title will be "Hello"
138138
// with meta tags injected
139139
})
140140
```

Diff for: en/structure.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ So the basic idea is we will be using webpack to bundle our app for both client
5757

5858
We will discuss the details of the setup in later sections - for now, let's just assume we've got the build setup figured out and we can write our Vue app code with webpack enabled.
5959

60-
## Code Structure with Webpack
60+
## Code Structure with webpack
6161

6262
Now that we are using webpack to process the app for both server and client, the majority of our source code can be written in a universal fashion, with access to all the webpack-powered features. At the same time, there are [a number of things](./universal.md) you should keep in mind when writing universal code.
6363

0 commit comments

Comments
 (0)