From 84b8357ffccc3adfd88962e4b4f29528659f10ec Mon Sep 17 00:00:00 2001 From: dorarep Date: Tue, 21 Jan 2020 18:51:34 +0900 Subject: [PATCH 1/4] feat: translate docs/webpack-and-ssr --- docs/docs/webpack-and-ssr.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/docs/webpack-and-ssr.md b/docs/docs/webpack-and-ssr.md index b092b6e3a..f64ecc541 100644 --- a/docs/docs/webpack-and-ssr.md +++ b/docs/docs/webpack-and-ssr.md @@ -1,15 +1,15 @@ --- -title: Webpack and SSR +title: WebpackとSSR --- -Bootstrap is finished! And we've [written the resulting pages](/docs/write-pages/) to disk. The next step is to render each page to HTML. And, we must build a JavaScript runtime that takes over once the HTML has loaded so that future page navigations load instantly. +Bootstrap が完了しました!そしてディスクに[結果ページが書き込まれました](/docs/write-pages/)。次のステップでは、これらのページを HTML へレンダリングします。またページナビゲーションを即座に読み込むため、HTML が読み込まれたら引き継ぐ JavaScript ランタイムをビルドする必要があります。 -The next stages of the build lean heavily on webpack for code optimization and code splitting. If you haven't already, it's worth diving into [webpack's docs](https://webpack.js.org/guides/) to learn how it works. +ビルドの次のステージは、Webpack のコード最適化とコード分割に強く依存しています。まだ読んでいないのであれば、[Webpack のドキュメント](https://webpack.js.org/guides/)から Webpack がどのように動いているか学習すると良いでしょう。 ## /.cache/ -All the files required by webpack are in your site's `.cache` directory. This is empty when you initialize a new project and can be safely deleted. Gatsby creates and fills it over the course of a build. +Webpack が必要とする全てのファイルは、`.cache`ディレクトリーの中にあります。このディレクトリーはプロジェクトの初期化時に空であり、安全に削除できます。Gatsby はビルドの過程でディレクトリーとそこに含まれるファイルを生成します。 -At the start of the build, Gatsby [copies all files](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/bootstrap/index.js#L191) in [gatsby/cache-dir](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby/cache-dir) into your `.cache` directory. This includes things like [static-entry.js](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/cache-dir/static-entry.js) and [production-app.js](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/cache-dir/production-app.js) that you'll read about in the next sections. Essentially, all files that are needed by Gatsby to run in the browser, or to generate HTML, are included in `cache-dir`. +Gatsby はビルドの開始時、[gatsby/cache-dir](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby/cache-dir)に含まれる[全てのファイルのコピー](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/bootstrap/index.js#L191)を、`.cache`ディレクトリーに生成します。この中には、次のセクションで説明する[static-entry.js](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/cache-dir/static-entry.js)や[production-app.js](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/cache-dir/production-app.js)といったものが含まれています。基本的に、Gatsby がブラウザーでの実行か HTML の生成に必要とするファイルは全て、`cache-dir`に含まれます。 -Since Webpack doesn't know about Redux, we also need to create files that contain all the page data that was built up during bootstrap. And these all need to be placed in `.cache` as well. This is what the previous [Write Out Pages](/docs/write-pages/) section dealt with. +Webpack が Redux を認識しないため、Bootstrap 中に構築された全てのページデータを含むファイルを生成する必要があります。そして、これらのファイルもすべて`.cache`に格納する必要があります。これは 1 つ前の[ページの書き出し](/docs/write-pages/)セクションで扱ったものです。 From f2860edde7a57ced8c6398360d765d8e3862d3be Mon Sep 17 00:00:00 2001 From: dorarep Date: Thu, 23 Jan 2020 13:55:54 +0900 Subject: [PATCH 2/4] fix: add space between English letter and Japanese letter. Co-Authored-By: BSKY --- docs/docs/webpack-and-ssr.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/docs/webpack-and-ssr.md b/docs/docs/webpack-and-ssr.md index f64ecc541..0a89eeb61 100644 --- a/docs/docs/webpack-and-ssr.md +++ b/docs/docs/webpack-and-ssr.md @@ -1,5 +1,5 @@ --- -title: WebpackとSSR +title: Webpack と SSR --- Bootstrap が完了しました!そしてディスクに[結果ページが書き込まれました](/docs/write-pages/)。次のステップでは、これらのページを HTML へレンダリングします。またページナビゲーションを即座に読み込むため、HTML が読み込まれたら引き継ぐ JavaScript ランタイムをビルドする必要があります。 @@ -8,8 +8,8 @@ Bootstrap が完了しました!そしてディスクに[結果ページが書 ## /.cache/ -Webpack が必要とする全てのファイルは、`.cache`ディレクトリーの中にあります。このディレクトリーはプロジェクトの初期化時に空であり、安全に削除できます。Gatsby はビルドの過程でディレクトリーとそこに含まれるファイルを生成します。 +Webpack が必要とする全てのファイルは、`.cache` ディレクトリーの中にあります。このディレクトリーはプロジェクトの初期化時に空であり、安全に削除できます。Gatsby はビルドの過程でディレクトリーとそこに含まれるファイルを生成します。 -Gatsby はビルドの開始時、[gatsby/cache-dir](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby/cache-dir)に含まれる[全てのファイルのコピー](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/bootstrap/index.js#L191)を、`.cache`ディレクトリーに生成します。この中には、次のセクションで説明する[static-entry.js](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/cache-dir/static-entry.js)や[production-app.js](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/cache-dir/production-app.js)といったものが含まれています。基本的に、Gatsby がブラウザーでの実行か HTML の生成に必要とするファイルは全て、`cache-dir`に含まれます。 +Gatsby はビルドの開始時、[gatsby/cache-dir](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby/cache-dir) に含まれる[全てのファイルのコピー](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/bootstrap/index.js#L191)を、`.cache` ディレクトリーに生成します。この中には、次のセクションで説明する [static-entry.js](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/cache-dir/static-entry.js) や [production-app.js](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/cache-dir/production-app.js) といったものが含まれています。基本的に、Gatsby がブラウザーでの実行か HTML の生成に必要とするファイルは全て、`cache-dir` に含まれます。 -Webpack が Redux を認識しないため、Bootstrap 中に構築された全てのページデータを含むファイルを生成する必要があります。そして、これらのファイルもすべて`.cache`に格納する必要があります。これは 1 つ前の[ページの書き出し](/docs/write-pages/)セクションで扱ったものです。 +Webpack が Redux を認識しないため、Bootstrap 中に構築された全てのページデータを含むファイルを生成する必要があります。そして、これらのファイルもすべて `.cache` に格納する必要があります。これは 1 つ前の[ページの書き出し](/docs/write-pages/)セクションで扱ったものです。 From baf4628582eb726cc4eaa460d6b3fd9e48b05aea Mon Sep 17 00:00:00 2001 From: dorarep Date: Thu, 30 Jan 2020 17:26:52 +0900 Subject: [PATCH 3/4] Update docs/docs/webpack-and-ssr.md Co-Authored-By: Yasuaki Uechi --- docs/docs/webpack-and-ssr.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/webpack-and-ssr.md b/docs/docs/webpack-and-ssr.md index 0a89eeb61..2308fa5f3 100644 --- a/docs/docs/webpack-and-ssr.md +++ b/docs/docs/webpack-and-ssr.md @@ -8,7 +8,7 @@ Bootstrap が完了しました!そしてディスクに[結果ページが書 ## /.cache/ -Webpack が必要とする全てのファイルは、`.cache` ディレクトリーの中にあります。このディレクトリーはプロジェクトの初期化時に空であり、安全に削除できます。Gatsby はビルドの過程でディレクトリーとそこに含まれるファイルを生成します。 +Webpack が必要とする全てのファイルは、`.cache` ディレクトリーの中にあります。このディレクトリーはプロジェクトの初期化時には空であり、安全に削除できます。Gatsby はビルドの過程でディレクトリーとそこに含まれるファイルを生成します。 Gatsby はビルドの開始時、[gatsby/cache-dir](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby/cache-dir) に含まれる[全てのファイルのコピー](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/bootstrap/index.js#L191)を、`.cache` ディレクトリーに生成します。この中には、次のセクションで説明する [static-entry.js](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/cache-dir/static-entry.js) や [production-app.js](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/cache-dir/production-app.js) といったものが含まれています。基本的に、Gatsby がブラウザーでの実行か HTML の生成に必要とするファイルは全て、`cache-dir` に含まれます。 From 373b460ce1051b7cd5589e404d9461230eb64d97 Mon Sep 17 00:00:00 2001 From: dorarep Date: Thu, 30 Jan 2020 17:32:24 +0900 Subject: [PATCH 4/4] fix: fix unnatural Japanese --- docs/docs/webpack-and-ssr.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/webpack-and-ssr.md b/docs/docs/webpack-and-ssr.md index 2308fa5f3..9f644e72e 100644 --- a/docs/docs/webpack-and-ssr.md +++ b/docs/docs/webpack-and-ssr.md @@ -10,6 +10,6 @@ Bootstrap が完了しました!そしてディスクに[結果ページが書 Webpack が必要とする全てのファイルは、`.cache` ディレクトリーの中にあります。このディレクトリーはプロジェクトの初期化時には空であり、安全に削除できます。Gatsby はビルドの過程でディレクトリーとそこに含まれるファイルを生成します。 -Gatsby はビルドの開始時、[gatsby/cache-dir](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby/cache-dir) に含まれる[全てのファイルのコピー](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/bootstrap/index.js#L191)を、`.cache` ディレクトリーに生成します。この中には、次のセクションで説明する [static-entry.js](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/cache-dir/static-entry.js) や [production-app.js](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/cache-dir/production-app.js) といったものが含まれています。基本的に、Gatsby がブラウザーでの実行か HTML の生成に必要とするファイルは全て、`cache-dir` に含まれます。 +Gatsby はビルドの開始時、[gatsby/cache-dir](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby/cache-dir) に含まれる[全てのファイルのコピー](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/bootstrap/index.js#L191)を、`.cache` ディレクトリーに生成します。この中には、次のセクションで説明する [static-entry.js](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/cache-dir/static-entry.js) や [production-app.js](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/cache-dir/production-app.js) といったものが含まれています。基本的に、ブラウザーでの実行か HTML の生成に必要なファイルは全て、`cache-dir` に含まれます。 Webpack が Redux を認識しないため、Bootstrap 中に構築された全てのページデータを含むファイルを生成する必要があります。そして、これらのファイルもすべて `.cache` に格納する必要があります。これは 1 つ前の[ページの書き出し](/docs/write-pages/)セクションで扱ったものです。