From 09f38566ce2fad1b028e2f4bd11af905cfa4655b Mon Sep 17 00:00:00 2001 From: Jinjiang Date: Tue, 3 Oct 2017 12:30:29 +0800 Subject: [PATCH 1/2] [en] typos --- docs/en/advanced/lazy-loading.md | 2 +- docs/en/essentials/history-mode.md | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/en/advanced/lazy-loading.md b/docs/en/advanced/lazy-loading.md index d4c76c41e..4dc8c4c38 100644 --- a/docs/en/advanced/lazy-loading.md +++ b/docs/en/advanced/lazy-loading.md @@ -44,4 +44,4 @@ const Bar = () => import(/* webpackChunkName: "group-foo" */ './Bar.vue') const Baz = () => import(/* webpackChunkName: "group-foo" */ './Baz.vue') ``` -webpack will group any async module with the same chunk name into the same async chunk. +Webpack will group any async module with the same chunk name into the same async chunk. diff --git a/docs/en/essentials/history-mode.md b/docs/en/essentials/history-mode.md index 3ef4d07e7..fc2155ec0 100644 --- a/docs/en/essentials/history-mode.md +++ b/docs/en/essentials/history-mode.md @@ -43,24 +43,24 @@ location / { #### Native Node.js ```js -const http = require("http") -const fs = require("fs") +const http = require('http') +const fs = require('fs') const httpPort = 80 http.createServer((req, res) => { - fs.readFile("index.htm", "utf-8", (err, content) => { + fs.readFile('index.htm', 'utf-8', (err, content) => { if (err) { - console.log('We cannot open "index.htm" file.') + console.log('We cannot open 'index.htm' file.') } res.writeHead(200, { - "Content-Type": "text/html; charset=utf-8" + 'Content-Type': 'text/html; charset=utf-8' }) res.end(content) }) }).listen(httpPort, () => { - console.log("Server listening on: http://localhost:%s", httpPort) + console.log('Server listening on: http://localhost:%s', httpPort) }) ``` From 0d2d12fcf86551a064c8c15f15534f2eece729a9 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Tue, 3 Oct 2017 17:45:20 +0200 Subject: [PATCH 2/2] Update lazy-loading.md --- docs/en/advanced/lazy-loading.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/advanced/lazy-loading.md b/docs/en/advanced/lazy-loading.md index 4dc8c4c38..d4c76c41e 100644 --- a/docs/en/advanced/lazy-loading.md +++ b/docs/en/advanced/lazy-loading.md @@ -44,4 +44,4 @@ const Bar = () => import(/* webpackChunkName: "group-foo" */ './Bar.vue') const Baz = () => import(/* webpackChunkName: "group-foo" */ './Baz.vue') ``` -Webpack will group any async module with the same chunk name into the same async chunk. +webpack will group any async module with the same chunk name into the same async chunk.