From d904036f7bc84601f19f60b26c35cf3f2f33a5e3 Mon Sep 17 00:00:00 2001 From: Jinjiang Date: Sat, 11 Nov 2017 23:10:44 +0800 Subject: [PATCH 1/2] [en] Webpack -> webpack --- docs/en/README.md | 20 ++++++++++---------- docs/en/configurations/advanced.md | 6 +++--- docs/en/configurations/asset-url.md | 4 ++-- docs/en/configurations/custom-blocks.md | 2 +- docs/en/configurations/extract-css.md | 4 ++-- docs/en/configurations/pre-processors.md | 12 ++++++------ docs/en/features/es2015.md | 2 +- docs/en/features/hot-reload.md | 8 ++++---- docs/en/features/postcss.md | 4 ++-- docs/en/options.md | 18 +++++++++--------- docs/en/start/spec.md | 4 ++-- docs/en/workflow/linting.md | 6 +++--- docs/en/workflow/production.md | 4 ++-- docs/en/workflow/testing.md | 4 ++-- 14 files changed, 49 insertions(+), 49 deletions(-) diff --git a/docs/en/README.md b/docs/en/README.md index 0250fa4a9..a91d0a71a 100644 --- a/docs/en/README.md +++ b/docs/en/README.md @@ -2,32 +2,32 @@ ### What is `vue-loader`? -`vue-loader` is a loader for Webpack that can transform Vue components written in the following format into a plain JavaScript module: +`vue-loader` is a loader for webpack that can transform Vue components written in the following format into a plain JavaScript module: ![screenshot](http://blog.evanyou.me/images/vue-component.png) There are many cool features provided by `vue-loader`: - ES2015 enabled by default; -- Allows using other Webpack loaders for each part of a Vue component, for example SASS for ` ``` -However, note this makes your Vue component Webpack-specific and not compatible with Browserify and [vueify](https://github.com/vuejs/vueify). **If you intend to ship your Vue component as a reusable 3rd-party component, avoid using this syntax.** +However, note this makes your Vue component webpack-specific and not compatible with Browserify and [vueify](https://github.com/vuejs/vueify). **If you intend to ship your Vue component as a reusable 3rd-party component, avoid using this syntax.** diff --git a/docs/en/features/es2015.md b/docs/en/features/es2015.md index 023e41612..42461df49 100644 --- a/docs/en/features/es2015.md +++ b/docs/en/features/es2015.md @@ -58,7 +58,7 @@ You can also customize the features supported in templates using the [`buble` op ### Transpiling Normal `.js` Files -Since `vue-loader` only processes `*.vue` files, you'd need to tell Webpack to process normal `*.js` files with `babel-loader` or `buble-loader` in the Webpack config file. The project scaffolded with `vue-cli` already does it for you. +Since `vue-loader` only processes `*.vue` files, you'd need to tell webpack to process normal `*.js` files with `babel-loader` or `buble-loader` in the webpack config file. The project scaffolded with `vue-cli` already does it for you. ### Configuring Babel with `.babelrc` diff --git a/docs/en/features/hot-reload.md b/docs/en/features/hot-reload.md index 71e77f7d3..2a04d0028 100644 --- a/docs/en/features/hot-reload.md +++ b/docs/en/features/hot-reload.md @@ -24,10 +24,10 @@ Advanced users may want to check out [vue-hot-reload-api](https://github.com/vue Hot Reload is always enabled except following situations: - * Webpack `target` is `node` (SSR) - * Webpack minifies the code + * webpack `target` is `node` (SSR) + * webpack minifies the code * `process.env.NODE_ENV === 'production'` - + You may use `hotReload: false` option to disable the Hot Reload explicitly: ``` js @@ -42,4 +42,4 @@ module: { } ] } -``` \ No newline at end of file +``` diff --git a/docs/en/features/postcss.md b/docs/en/features/postcss.md index d97f07379..4066d9ec6 100644 --- a/docs/en/features/postcss.md +++ b/docs/en/features/postcss.md @@ -16,7 +16,7 @@ Using a config file allows you to share the same config between your normal CSS Alternatively, you can specify postcss config specifically for `*.vue` files using the `postcss` option for `vue-loader`. -Example usage in Webpack 1.x: +Example usage in webpack 1.x: ``` js // webpack.config.js @@ -29,7 +29,7 @@ module.exports = { } ``` -For Webpack 2.x: +For webpack 2.x: ``` js // webpack.config.js diff --git a/docs/en/options.md b/docs/en/options.md index 55eb290b2..8e63790a5 100644 --- a/docs/en/options.md +++ b/docs/en/options.md @@ -1,8 +1,8 @@ # Options Reference -## Usage Difference Between Webpack 1 & 2 +## Usage Difference Between webpack 1 & 2 -For Webpack 2: pass the options directly to the loader rule. +For webpack 2: pass the options directly to the loader rule. ``` js module.exports = { @@ -21,7 +21,7 @@ module.exports = { } ``` -For Webpack 1.x: add a root `vue` block in your Webpack config. +For webpack 1.x: add a root `vue` block in your webpack config. ``` js module.exports = { @@ -36,7 +36,7 @@ module.exports = { - type: `{ [lang: string]: string }` - An object specifying Webpack loaders to overwrite the default loaders used for language blocks inside `*.vue` files. The key corresponds to the `lang` attribute for language blocks, if specified. The default `lang` for each type is: + An object specifying webpack loaders to overwrite the default loaders used for language blocks inside `*.vue` files. The key corresponds to the `lang` attribute for language blocks, if specified. The default `lang` for each type is: - `