From 2c2a9c97e2de745a14af112439163ae39693942d Mon Sep 17 00:00:00 2001 From: Jinjiang Date: Sat, 11 Nov 2017 23:54:06 +0800 Subject: [PATCH 1/2] [en] typo --- docs/en/features/postcss.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/features/postcss.md b/docs/en/features/postcss.md index d97f07379..7b8634433 100644 --- a/docs/en/features/postcss.md +++ b/docs/en/features/postcss.md @@ -36,12 +36,12 @@ For Webpack 2.x: module.exports = { // other options... module: { - // module.rules is the same as module.loaders in 1.x + // `module.rules` is the same as `module.loaders` in 1.x rules: [ { test: /\.vue$/, loader: 'vue-loader', - // vue-loader options goes here + // `vue-loader` options goes here options: { // ... postcss: [require('postcss-cssnext')()] From 8a3749123dbee0c0a4d3023895a282916d809604 Mon Sep 17 00:00:00 2001 From: Jinjiang Date: Mon, 20 Nov 2017 12:25:49 +0800 Subject: [PATCH 2/2] [docs] typos --- docs/en/configurations/advanced.md | 6 +++--- docs/en/options.md | 6 +++--- docs/ja/configurations/advanced.md | 4 ++-- docs/ja/features/postcss.md | 4 ++-- docs/ja/options.md | 24 ++++++++++++------------ docs/kr/configurations/advanced.md | 10 +++++----- docs/kr/features/postcss.md | 4 ++-- docs/kr/options.md | 4 ++-- docs/pt_BR/configurations/advanced.md | 18 +++++++++--------- docs/pt_BR/features/postcss.md | 4 ++-- docs/ru/configurations/advanced.md | 2 +- docs/ru/features/postcss.md | 2 +- docs/zh-cn/configurations/advanced.md | 4 ++-- docs/zh-cn/features/postcss.md | 4 ++-- docs/zh-cn/options.md | 4 ++-- 15 files changed, 50 insertions(+), 50 deletions(-) diff --git a/docs/en/configurations/advanced.md b/docs/en/configurations/advanced.md index 90563308b..15e53cd72 100644 --- a/docs/en/configurations/advanced.md +++ b/docs/en/configurations/advanced.md @@ -18,7 +18,7 @@ To do that, specify the `loaders` option for `vue-loader`: module.exports = { // other options... module: { - // module.rules is the same as module.loaders in 1.x + // `module.rules` is the same as `module.loaders` in 1.x rules: [ { test: /\.vue$/, @@ -49,7 +49,7 @@ module.exports = { postLoaders: { html: 'babel-loader' }, - + // `excludedPreLoaders` should be regex excludedPreLoaders: /(eslint-loader)/ } @@ -73,7 +73,7 @@ module.exports = { } ] }, - // vue-loader configurations + // `vue-loader` configurations vue: { loaders: { // same configuration rules as above diff --git a/docs/en/options.md b/docs/en/options.md index 55eb290b2..114532c8b 100644 --- a/docs/en/options.md +++ b/docs/en/options.md @@ -13,7 +13,7 @@ module.exports = { test: /\.vue$/, loader: 'vue-loader', options: { - // vue-loader options + // `vue-loader` options } } ] @@ -27,7 +27,7 @@ For Webpack 1.x: add a root `vue` block in your Webpack config. module.exports = { // ... vue: { - // vue-loader options + // `vue-loader` options } } ``` @@ -320,4 +320,4 @@ Whether generate source maps with cache busting by appending a hash query to the - allowed value: `false` (`true` will not force Hot Reload neither in production mode nor when `target: 'node'`) Whether to use Webpack [Hot Module Replacement](https://webpack.js.org/concepts/hot-module-replacement/) to apply changes in the browser **without reloading the page**. -Use this option (value `false`) to disable the Hot Reload feature in development mode. +Use this option (value `false`) to disable the Hot Reload feature in development mode. diff --git a/docs/ja/configurations/advanced.md b/docs/ja/configurations/advanced.md index b4716292f..7f5aa3523 100644 --- a/docs/ja/configurations/advanced.md +++ b/docs/ja/configurations/advanced.md @@ -16,7 +16,7 @@ module.exports = { // 他のオプション module: { - // module.rules は 1.x での module.loaders と同じです + // `module.rules` は 1.x での `module.loaders` と同じです rules: [ { test: /\.vue$/, @@ -71,7 +71,7 @@ module.exports = { } ] }, - // vue-loader の設定 + // `vue-loader` の設定 vue: { loaders: { // 上記の設定と同じ diff --git a/docs/ja/features/postcss.md b/docs/ja/features/postcss.md index 07bff8d7f..e8120a94e 100644 --- a/docs/ja/features/postcss.md +++ b/docs/ja/features/postcss.md @@ -36,12 +36,12 @@ Webpack 2.x の例: module.exports = { // 他の設定 module: { - // module.rules は 1.x の module.loaders と同じです + // `module.rules` は 1.x の `module.loaders` と同じです rules: [ { test: /\.vue$/, loader: 'vue-loader', - // vue-loader のオプションはここです + // `vue-loader` のオプションはここです options: { // ... postcss: [require('postcss-cssnext')()] diff --git a/docs/ja/options.md b/docs/ja/options.md index d6982b265..d29889d2b 100644 --- a/docs/ja/options.md +++ b/docs/ja/options.md @@ -13,7 +13,7 @@ module.exports = { test: /\.vue$/, loader: 'vue-loader', options: { - // vue-loader オプション + // `vue-loader` オプション } } ] @@ -27,7 +27,7 @@ Webpack 1.x の場合: Webpack の設定のルートに `vue` ブロックを追 module.exports = { // ... vue: { - // vue-loader オプション + // `vue-loader` オプション } } ``` @@ -238,24 +238,24 @@ module.exports = { ``` ### extractCSS - + > 12.0.0 で追加 - + - 型: `boolean` - デフォルト: `false` 自動的に `extract-text-webpack-plugin` を使用して CSS を抽出します。ほとんどのプリプロセッサに対してすぐに動作し、本番環境においても同様に圧縮 (minify) 処理します。 - + `true` またはプラグインのインスタンス (複数の抽出されたファイルに対して `extract-text-webpack-plugin` の複数のインスタンスを使用できるように) を値として渡すことができます。 - + これは、開発中にはホットリロードが動作するため本番環境でのみ使用する必要があります。 - + 例: - + ``` js // webpack.config.js var ExtractTextPlugin = require("extract-text-webpack-plugin") - + module.exports = { // 他のオプション ... module: { @@ -274,14 +274,14 @@ module.exports = { ] } ``` - + または、プラグインのインスタンスを渡します: - + ``` js // webpack.config.js var ExtractTextPlugin = require("extract-text-webpack-plugin") var plugin = new ExtractTextPlugin("style.css") - + module.exports = { // 他のオプション ... module: { diff --git a/docs/kr/configurations/advanced.md b/docs/kr/configurations/advanced.md index fb509d539..71d4e6849 100644 --- a/docs/kr/configurations/advanced.md +++ b/docs/kr/configurations/advanced.md @@ -18,14 +18,14 @@ module.exports = { // 기타 옵션들... module: { - // module.rules은 1.x버전의 module.loaders과 같습니다 + // `module.rules`은 1.x버전의 module.loaders과 같습니다 rules: [ { test: /\.vue$/, loader: 'vue-loader', options: { // `loaders`는 기본 로더를 덮어씁니다. - // 다음 설정은 "lang" 속성이 없는 + // 다음 설정은 "lang" 속성이 없는 // 모든