diff --git a/.alexrc b/.alexrc
old mode 100644
new mode 100755
diff --git a/.babelrc b/.babelrc
old mode 100644
new mode 100755
diff --git a/.editorconfig b/.editorconfig
old mode 100644
new mode 100755
diff --git a/.eslintignore b/.eslintignore
old mode 100644
new mode 100755
diff --git a/.eslintrc b/.eslintrc
old mode 100644
new mode 100755
diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md
old mode 100644
new mode 100755
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
old mode 100644
new mode 100755
diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md
old mode 100644
new mode 100755
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
old mode 100644
new mode 100755
diff --git a/.gitignore b/.gitignore
old mode 100644
new mode 100755
diff --git a/.markdownlint.json b/.markdownlint.json
old mode 100644
new mode 100755
diff --git a/.proselintrc b/.proselintrc
old mode 100644
new mode 100755
diff --git a/.travis.yml b/.travis.yml
old mode 100644
new mode 100755
diff --git a/CNAME b/CNAME
old mode 100644
new mode 100755
diff --git a/LICENSE b/LICENSE
old mode 100644
new mode 100755
diff --git a/README.md b/README.md
old mode 100644
new mode 100755
diff --git a/antwar.config.js b/antwar.config.js
old mode 100644
new mode 100755
diff --git a/bootstrap.js b/bootstrap.js
old mode 100644
new mode 100755
diff --git a/content/loaders/babel-loader.md b/content/loaders/babel-loader.md
deleted file mode 100644
index ddeff2e256ac..000000000000
--- a/content/loaders/babel-loader.md
+++ /dev/null
@@ -1,199 +0,0 @@
----
-title: babel-loader
-source: https://raw.githubusercontent.com/babel/babel-loader/master/README.md
-edit: https://github.com/babel/babel-loader/edit/master/README.md
----
-## 安装
-
-> webpack 1.x | babel-loader <= 6.x
->
-> webpack 2.x | babel-loader >= 7.x (推荐)(^6.2.10 也可以运行,但会有不赞成的警告(deprecation warnings))
->
-> webpack 3.x | babel-loader >= 7.1
-
-```bash
-yarn add babel-loader babel-core babel-preset-env webpack --dev
-```
-
-我们推荐您使用 yarn,但还是可以使用 npm:
-
-```bash
-npm install --save-dev babel-loader babel-core babel-preset-env webpack
-```
-
-## 用法
-
-[文档:使用 loader](https://webpack.js.org/loaders/)
-
-在 webpack 配置对象中,需要添加 babel-loader 到 module 的 loaders 列表中,像下面这样:
-
-```javascript
-module: {
- rules: [
- {
- test: /\.js$/,
- exclude: /(node_modules|bower_components)/,
- use: {
- loader: 'babel-loader',
- options: {
- presets: ['env']
- }
- }
- }
- ]
-}
-```
-
-### 选项
-
-参考 `babel` [选项](https://babeljs.io/docs/usage/api/#options)。
-
-
-你可以使用 [options 属性](https://webpack.js.org/configuration/module/#rule-options-rule-query) 来给 loader 传递选项:
-
-```javascript
-module: {
- rules: [
- {
- test: /\.js$/,
- exclude: /(node_modules|bower_components)/,
- use: {
- loader: 'babel-loader',
- options: {
- presets: ['env'],
- plugins: [require('babel-plugin-transform-object-rest-spread')]
- }
- }
- }
- ]
-}
-```
-
-此 loader 也支持下面这些 loader 特定(loader-specific)的选项:
-
-* `cacheDirectory`:默认值为 `false`。当有设置时,指定的目录将用来缓存 loader 的执行结果。之后的 webpack 构建,将会尝试读取缓存,来避免在每次执行时,可能产生的、高性能消耗的 Babel 重新编译过程(recompilation process)。如果设置了一个空值 (`loader: 'babel-loader?cacheDirectory'`) 或者 `true` (`loader: babel-loader?cacheDirectory=true`),loader 将使用默认的缓存目录 `node_modules/.cache/babel-loader`,如果在任何根目录下都没有找到 `node_modules` 目录,将会降级回退到操作系统默认的临时文件目录。
-
-* `cacheIdentifier`:默认是一个由 babel-core 版本号,babel-loader 版本号,.babelrc 文件内容(存在的情况下),环境变量 `BABEL_ENV` 的值(没有时降级到 `NODE_ENV`)组成的字符串。可以设置为一个自定义的值,在 identifier 改变后,强制缓存失效。
-
-* `forceEnv`:默认将解析 BABEL_ENV 然后是 NODE_ENV。允许你在 loader 级别上覆盖 BABEL_ENV/NODE_ENV。对有不同 babel 配置的,客户端和服务端同构应用非常有用。
-
-__注意:__`sourceMap` 选项是被忽略的。当 webpack 配置了 sourceMap 时(通过 `devtool` 配置选项),将会自动生成 sourceMap。
-
-## 疑难解答
-
-### babel-loader 很慢!
-
-确保转译尽可能少的文件。你可能使用 `/\.js$/` 来匹配,这样也许会去转译 `node_modules` 目录或者其他不需要的源代码。
-
-要排除 `node_modules`,参考文档中的 `loaders` 配置的 `exclude` 选项。
-
-你也可以通过使用 `cacheDirectory` 选项,将 babel-loader 提速至少两倍。
-这会将转译的结果缓存到文件系统中。
-
-### babel 在每个文件都插入了辅助代码,使代码体积过大!
-
-babel 对一些公共方法使用了非常小的辅助代码,比如 `_extend`。
-默认情况下会被添加到每一个需要它的文件中
-
-你可以引入 babel runtime 作为一个独立模块,来避免重复引入。
-
-下面的配置禁用了 babel 自动对每个文件的 runtime 注入,而是引入 `babel-plugin-transform-runtime` 并且使所有辅助代码从这里引用。
-
-更多信息请参考[文档](http://babeljs.io/docs/plugins/transform-runtime/)。
-
-**注意:** 你必须执行 `npm install babel-plugin-transform-runtime --save-dev` 来把它包含到你的项目中,也要使用 `npm install babel-runtime --save` 把 `babel-runtime` 安装为一个依赖。
-
-```javascript
-rules: [
- // 'transform-runtime' 插件告诉 babel 要引用 runtime 来代替注入。
- {
- test: /\.js$/,
- exclude: /(node_modules|bower_components)/,
- use: {
- loader: 'babel-loader',
- options: {
- presets: ['env'],
- plugins: ['transform-runtime']
- }
- }
- }
-]
-```
-
-#### **注意:** transform-runtime 和自定义 polyfills (比如 Promise library)
-
-由于 [babel-plugin-transform-runtime](https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-runtime) 包含了一个 polyfill,含有自定义的 [regenerator runtime](https://github.com/facebook/regenerator/blob/master/packages/regenerator-runtime/runtime.js) 和 [core.js](https://github.com/zloirock/core-js), 下面使用 `webpack.ProvidePlugin` 来配置 shimming 的常用方法将没有作用:
-
-```javascript
-// ...
- new webpack.ProvidePlugin({
- 'Promise': 'bluebird'
- }),
-// ...
-```
-
-下面这样的写法也没有作用:
-
-```javascript
-require('babel-runtime/core-js/promise').default = require('bluebird');
-
-var promise = new Promise;
-```
-
-它其实会生成下面这样 (使用了 `runtime` 后):
-
-```javascript
-'use strict';
-
-var _Promise = require('babel-runtime/core-js/promise')['default'];
-
-require('babel-runtime/core-js/promise')['default'] = require('bluebird');
-
-var promise = new _Promise();
-```
-
-前面的 `Promise` 库在被覆盖前已经被引用和使用了。
-
-一种可行的办法是,在你的应用中加入一个“启动器(bootstrap)”步骤,在应用开始前先覆盖默认的全局变量。
-
-```javascript
-// bootstrap.js
-
-require('babel-runtime/core-js/promise').default = require('bluebird');
-
-// ...
-
-require('./app');
-```
-
-### `babel` 的 node API 已经被移到 `babel-core` 中。
-
-(原文:The node API for `babel` has been moved to `babel-core`.)
-
-如果你收到这个信息,这说明你有一个已经安装的 `babel` 包,并且在 webpack 配置中使用它来作为 loader 的简写 (这样的方式在 webpack 2.x 版本中将不再被支持)。
-
-```js
- {
- test: /\.js$/,
- loader: 'babel',
- }
-```
-
-Webpack 将尝试读取 `babel` 包而不是 `babel-loader`。
-
-要修复这个问题,你需要删除 `babel` npm 包,因为它在 babel v6 中已经被废除。(安装 `babel-cli` 或者 `babel-core` 来替代它)。
-
-如果你的依赖中有对 `babel` 包的依赖使你无法删除它,可以在 webpack 配置中使用完整的 loader 名称来解决:
-
-```js
- {
- test: /\.js$/,
- loader: 'babel-loader',
- }
-```
-
-## [License](http://couto.mit-license.org/)
-
-***
-
-> 原文:https://webpack.js.org/loaders/babel-loader/
diff --git a/content/loaders/bundle-loader.md b/content/loaders/bundle-loader.md
deleted file mode 100755
index b91830776ff7..000000000000
--- a/content/loaders/bundle-loader.md
+++ /dev/null
@@ -1,119 +0,0 @@
----
-title: bundle-loader
-source: https://raw.githubusercontent.com/webpack-contrib/bundle-loader/master/README.md
-edit: https://github.com/webpack-contrib/bundle-loader/edit/master/README.md
----
-## 安装
-
-```bash
-npm i bundle-loader --save
-```
-
-## 用法
-
-``` javascript
-// 当你引用 bundle 的时候,chunk 会被浏览器加载。
-var waitForChunk = require("bundle-loader!./file.js");
-
-// 为了等待 chunk 的加载完成 (而且为了拿到 exports 输出)
-// 你需要异步去等待它
-waitForChunk(function(file) {
- // 这里可以使用file,就像是用下面的代码require进来一样
- // var file = require("./file.js");
-});
-// 将 require 包裹在 require.ensure 的代码块中
-
-// Multiple callbacks can be added. They will be executed in the order of addition.
-waitForChunk(callbackTwo);
-waitForChunk(callbackThree);
-// If a callback is added after dependencies were loaded, it will be called immediately.
-```
-
-当你引用 bundle 的时候,chunk 会被浏览器加载。如果你想它懒加载,请用:
-
-``` javascript
-var load = require("bundle-loader?lazy!./file.js");
-
-// bundle 不会被加载,除非你调用了 call 函数
-load(function(file) {
-
-});
-```
-### `name` query parameter
-
-你可能会使用 `name` 查询参数给 bundle 设置名称。
-请查看[文档](https://github.com/webpack/loader-utils#interpolatename).
-
-**Note** chunks created by the loader will be named according to the
-[`output.chunkFilename`](https://webpack.js.org/configuration/output/#output-chunkfilename) rule, which defaults to `[id].[name]`.
-Here `[name]` corresponds to the chunk name set in the `name` query parameter.
-
-#### Example:
-
-``` js
-require("bundle-loader?lazy&name=my-chunk!./file.js");
-require("bundle-loader?lazy&name=[name]!./file.js");
-```
-And the webpack configuration:
-``` js
-module.exports = {
- entry: { ... },
- output : {
- path : ...,
- filename : '[name].js',
- chunkFilename : '[name]-[id].js', // or whatever other format you want.
- },
-}
-```
-
-Normal chunks will show up using the `filename` rule above, and be named according to their chunkname.
-Chunks from `bundle-loader`, however will load using the `chunkFilename` rule, so the example files will produce `my-chunk-1.js` and `file-2.js` respectively.
-
-You can also use `chunkFilename` to add hash values to the filename, since putting `[hash]` in the bundle query parameter does not work correctly.
-
-## Maintainers
-
-
-
-
-[npm]: https://img.shields.io/npm/v/bundle-loader.svg
-[npm-url]: https://npmjs.com/package/bundle-loader
-
-[deps]: https://david-dm.org/webpack-contrib/bundle-loader.svg
-[deps-url]: https://david-dm.org/webpack-contrib/bundle-loader
-
-[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg
-[chat-url]: https://gitter.im/webpack/webpack
-
-***
-
-> 原文:https://webpack.js.org/loaders/bundle-loader/
\ No newline at end of file
diff --git a/content/loaders/cache-loader.md b/content/loaders/cache-loader.md
deleted file mode 100644
index b5babbc7bcba..000000000000
--- a/content/loaders/cache-loader.md
+++ /dev/null
@@ -1,159 +0,0 @@
----
-title: cache-loader
-source: https://raw.githubusercontent.com/webpack-contrib/cache-loader/master/README.md
-edit: https://github.com/webpack-contrib/cache-loader/edit/master/README.md
----
-## 安装
-
-```bash
-npm install --save-dev cache-loader
-```
-
-## 用法
-
-在一些性能开销较大的 loader 之前添加此 loader,以将结果缓存到磁盘里。
-
-**webpack.config.js**
-```js
-module.exports = {
- module: {
- rules: [
- {
- test: /\.ext$/,
- use: [
- 'cache-loader',
- ...loaders
- ],
- include: path.resolve('src')
- }
- ]
- }
-}
-```
-
-> ⚠️ 请注意,保存和读取这些缓存文件会有一些时间开销,所以请只对性能开销较大的 loader 使用此 loader。
-
-## Options
-
-|Name|Type|Default|Description|
-|:--:|:--:|:-----:|:----------|
-|**`cacheDirectory`**|`{String}`|`path.resolve('.cache-loader')`|Provide a cache directory where cache items should be stored|
-
-## 示例
-
-**webpack.config.js**
-```js
-module.exports = {
- module: {
- rules: [
- {
- test: /\.js$/,
- use: [
- 'cache-loader',
- 'babel-loader'
- ],
- include: path.resolve('src')
- }
- ]
- }
-}
-```
-
-### `配置选项`
-
-**webpack.config.js**
-```js
-module.exports = {
- module: {
- rules: [
- {
- test: /\.js$/,
- use: [
- {
- loader: 'cache-loader',
- options: {
- cacheDirectory: path.resolve('.cache')
- }
- },
- 'babel-loader'
- ],
- include: path.resolve('src')
- }
- ]
- }
-}
-```
-
-## 维护人员
-
-
-
-
-[npm]: https://img.shields.io/npm/v/cache-loader.svg
-[npm-url]: https://npmjs.com/package/cache-loader
-
-[node]: https://img.shields.io/node/v/cache-loader.svg
-[node-url]: https://nodejs.org
-
-[deps]: https://david-dm.org/webpack-contrib/cache-loader.svg
-[deps-url]: https://david-dm.org/webpack-contrib/cache-loader
-
-[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg
-[chat-url]: https://gitter.im/webpack/webpack
-
-[test]: http://img.shields.io/travis/webpack-contrib/cache-loader.svg
-[test-url]: https://travis-ci.org/webpack-contrib/cache-loader
-
-[cover]: https://codecov.io/gh/webpack-contrib/cache-loader/branch/master/graph/badge.svg
-[cover-url]: https://codecov.io/gh/webpack-contrib/cache-loader
-
-***
-
-> 原文:https://webpack.js.org/loaders/cache-loader/
diff --git a/content/loaders/coffee-loader.md b/content/loaders/coffee-loader.md
deleted file mode 100644
index 677556dac3ff..000000000000
--- a/content/loaders/coffee-loader.md
+++ /dev/null
@@ -1,143 +0,0 @@
----
-title: coffee-loader
-source: https://raw.githubusercontent.com/webpack-contrib/coffee-loader/master/README.md
-edit: https://github.com/webpack-contrib/coffee-loader/edit/master/README.md
----
-## Install
-
-```bash
-npm install --save-dev coffee-loader
-```
-
-## 用法
-
-
-```js
-import coffee from 'coffee-loader!./file.coffee';
-```
-
-### 配置(推荐)
-
-
-```js
-import coffee from 'file.coffee';
-```
-
-**webpack.config.js**
-```js
-module.exports = {
- module: {
- rules: [
- {
- test: /\.coffee$/,
- use: [ 'coffee-loader' ]
- }
- ]
- }
-}
-```
-
-## Options
-
-|Name|Default|Description|
-|:--:|:-----:|:----------|
-|**`literate`**|`false`|Enable CoffeeScript in Markdown (Code Blocks) e.g `file.coffee.md`|
-|**`sourceMap`**|`false`|Enable/Disable Sourcemaps|
-
-### [Literate](http://coffeescript.org/#literate)
-
-**webpack.config.js**
-```js
-module.exports = {
- module: {
- rules: [
- {
- test: /\.coffee.md$/,
- use: [
- {
- loader: 'coffee-loader',
- options: { literate: true }
- }
- ]
- }
- ]
- }
-}
-```
-
-### Sourcemaps
-
-**webpack.config.js**
-```js
-module.exports = {
- module: {
- rules: [
- {
- test: /\.coffee$/,
- use: [
- {
- loader: 'coffee-loader',
- options: { sourceMap: true }
- }
- ]
- }
- ]
- }
-}
-```
-
-## Maintainer
-
-
-
-
-[npm]: https://img.shields.io/npm/v/coffee-loader.svg
-[npm-url]: https://npmjs.com/package/coffee-loader
-
-[node]: https://img.shields.io/node/v/coffee-loader.svg
-[node-url]: https://nodejs.org
-
-[deps]: https://david-dm.org/webpack/coffee-loader.svg
-[deps-url]: https://david-dm.org/webpack/coffee-loader
-
-[tests]: http://img.shields.io/travis/webpack/coffee-loader.svg
-[tests-url]: https://travis-ci.org/webpack/coffee-loader
-
-[cover]: https://coveralls.io/repos/github/webpack/coffee-loader/badge.svg
-[cover-url]: https://coveralls.io/github/webpack/coffee-loader
-
-[chat]: https://badges.gitter.im/webpack/webpack.svg
-[chat-url]: https://gitter.im/webpack/webpack
-
-***
-
-> 原文:https://webpack.js.org/loaders/coffee-loader/
diff --git a/content/loaders/coffee-redux-loader.md b/content/loaders/coffee-redux-loader.md
deleted file mode 100644
index 7fa1018bb39c..000000000000
--- a/content/loaders/coffee-redux-loader.md
+++ /dev/null
@@ -1,68 +0,0 @@
----
-title: coffee-redux-loader
-source: https://raw.githubusercontent.com/webpack-contrib/coffee-redux-loader/master/README.md
-edit: https://github.com/webpack-contrib/coffee-redux-loader/edit/master/README.md
----
-## Install
-
-```bash
-npm i -D coffee-redux-loader
-```
-
-## 用法
-
-``` javascript
-var exportsOfFile = require("coffee-redux-loader!./file.coffee");
-// => return exports of executed and compiled file.coffee
-```
-
-如果你想要在 node 运行环境中使用,不要忘了 polyfill `require`。
-请查看 `webpack` 文档。
-
-
-## Maintainers
-
-
-
-
-[npm]: https://img.shields.io/npm/v/coffee-redux-loader.svg
-[npm-url]: https://npmjs.com/package/coffee-redux-loader
-
-[deps]: https://david-dm.org/webpack-contrib/coffee-redux-loader.svg
-[deps-url]: https://david-dm.org/webpack-contrib/coffee-redux-loader
-
-[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg
-[chat-url]: https://gitter.im/webpack/webpack
-
-***
-
-> 原文:https://webpack.js.org/loaders/coffee-redux-loader/
\ No newline at end of file
diff --git a/content/loaders/coverjs-loader.md b/content/loaders/coverjs-loader.md
deleted file mode 100644
index e659b1f0de65..000000000000
--- a/content/loaders/coverjs-loader.md
+++ /dev/null
@@ -1,57 +0,0 @@
----
-title: coverjs-loader
-source: https://raw.githubusercontent.com/webpack/coverjs-loader/master/README.md
-edit: https://github.com/webpack/coverjs-loader/edit/master/README.md
----
-# coverjs loader for webpack
-
-## 用法
-
-``` javascript
-webpack-dev-server "mocha!./cover-my-client-tests.js" --options webpackOptions.js
-```
-
-``` javascript
-// webpackOptions.js
-module.exports = {
- // 你的 webpack options
- output: "bundle.js",
- publicPrefix: "/",
- debug: true,
- includeFilenames: true,
- watch: true,
-
- // 绑定 coverjs loader
- postLoaders: [{
- test: "", // 所有文件
- exclude: [
- "node_modules.chai",
- "node_modules.coverjs-loader",
- "node_modules.webpack.buildin"
- ],
- loader: "coverjs-loader"
- }]
-}
-```
-
-``` javascript
-// cover-my-client-tests.js
-require("./my-client-tests");
-
-after(function() {
- require("cover-loader").reportHtml();
-});
-```
-
-参考示例 [the-big-test](https://github.com/webpack/the-big-test)。
-
-这是一个独立的 loader,你不必一定把它和 mocha loader 结合一起使用。如果你想 cover 一个普通的项目,也可以直接使用它。`reportHtml` 方法会把输出内容添加到 body 中。
-
-
-## License
-
-MIT (http://www.opensource.org/licenses/mit-license.php)
-
-***
-
-> 原文:https://webpack.js.org/loaders/coverjs-loader/
diff --git a/content/loaders/css-loader.md b/content/loaders/css-loader.md
deleted file mode 100644
index b80bfa72730a..000000000000
--- a/content/loaders/css-loader.md
+++ /dev/null
@@ -1,553 +0,0 @@
----
-title: css-loader
-source: https://raw.githubusercontent.com/webpack-contrib/css-loader/master/README.md
-edit: https://github.com/webpack-contrib/css-loader/edit/master/README.md
----
-## 安装
-
-```bash
-npm install --save-dev css-loader
-```
-
-## 用法
-
-`css-loader` 解释(interpret) `@import` 和 `url()` ,会 `import/require()` 后再解析(resolve)它们。
-
-引用资源的合适 loader 是 [file-loader](https://github.com/webpack/file-loader) 和 [url-loader](https://github.com/webpack/url-loader),您应该在配置中指定(查看[如下设置](https://github.com/webpack-contrib/css-loader#assets))。
-
-**file.js**
-```js
-import css from 'file.css';
-```
-
-**webpack.config.js**
-```js
-module.exports = {
- module: {
- rules: [
- {
- test: /\.css$/,
- use: [ 'style-loader', 'css-loader' ]
- }
- ]
- }
-}
-```
-
-### `toString`
-
-您也可以直接将 css-loader 的结果作为字符串使用,例如 Angular 的组件样式。
-
-**webpack.config.js**
-```js
-{
- test: /\.css$/,
- use: [
- 'to-string-loader',
- 'css-loader'
- ]
-}
-```
-
-或者
-
-```js
-const css = require('./test.css').toString();
-
-console.log(css); // {String}
-```
-
-如果有 SourceMap,它们也将包含在字符串结果中。
-
-如果由于某种原因,您需要将 CSS 提取为纯粹的字符串资源(即不包含在 JS 模块中),则可能需要查看 [extract-loader](https://github.com/peerigon/extract-loader)。
-例如,当您需要将 CSS 作为字符串进行后处理时,这很有用。
-
-**webpack.config.js**
-```js
-{
- test: /\.css$/,
- use: [
- 'handlebars-loader', // handlebars loader expects raw resource string
- 'extract-loader',
- 'css-loader'
- ]
-}
-```
-
-## 选项
-
-|名称|类型|默认值|描述|
-|:--:|:--:|:-----:|:----------|
-|**`root`**|`{String}`|`/`|解析 URL 的路径,以 `/` 开头的 URL 不会被转译|
-|**`url`**|`{Boolean}`|`true`| 启用/禁用 `url()` 处理|
-|**`alias`**|`{Object}`|`{}`|创建别名更容易导入一些模块|
-|**`import`** |`{Boolean}`|`true`| 启用/禁用 @import 处理|
-|**`modules`**|`{Boolean}`|`false`|启用/禁用 CSS 模块|
-|**`minimize`**|`{Boolean\|Object}`|`false`|启用/禁用 压缩|
-|**`sourceMap`**|`{Boolean}`|`false`|启用/禁用 Sourcemap|
-|**`camelCase`**|`{Boolean\|String}`|`false`|以驼峰化式命名导出类名|
-|**`importLoaders`**|`{Number}`|`0`|在 css-loader 前应用的 loader 的数量|
-|**`localIdentName`**|`{String}`|`[hash:base64]`|配置生成的标识符(ident)|
-
-### `root`
-
-对于以 `/` 开头的 URL,默认行为是不转译它们。
-
-`url(/image.png) => url(/image.png)`
-
-如果设置了 `root` 查询参数,那么此查询参数将被添加到 URL 前面,然后再进行转译。
-
-**webpack.config.js**
-```js
-{
- loader: 'css-loader',
- options: { root: '.' }
-}
-```
-
-`url(/image.png)` => `require('./image.png')`
-
-不建议使用'相对根路径'的 url。您应该只将其用于旧版 CSS 文件。
-
-### `url`
-
-要禁用 `css-loader` 解析 `url()`,将选项设置为 `false`。
-
-与现有的 css 文件兼容(如果不是在 CSS 模块模式下)。
-
-```
-url(image.png) => require('./image.png')
-url(~module/image.png) => require('module/image.png')
-```
-
-### `alias`
-
-用别名重写你的 URL,在难以改变输入文件的url 路径时,这会很有帮助,例如,当你使用另一个包(package)(如 bootstrap, ratchet, font-awesome 等)中一些 css/sass 文件。
-
-`css-loader` 的别名,遵循与webpack 的 `resolve.alias` 相同的语法,你可以在[resolve 文档](https://webpack.js.org/configuration/resolve/#resolve-alias) 查看细节
-
-**file.scss**
-```css
-@charset "UTF-8";
-@import "bootstrap";
-```
-
-**webpack.config.js**
-```js
-{
- test: /\.scss$/,
- use: [
- {
- loader: "style-loader"
- },
- {
- loader: "css-loader",
- options: {
- alias: {
- "../fonts/bootstrap": "bootstrap-sass/assets/fonts/bootstrap"
- }
- }
- },
- {
- loader: "sass-loader",
- options: {
- includePaths: [
- path.resolve("./node_modules/bootstrap-sass/assets/stylesheets")
- ]
- }
- }
- ]
-}
-```
-
-查看此示例 [working bootstrap example](https://github.com/bbtfr/webpack2-bootstrap-sass-sample)。
-
-### `import`
-
-要禁用 `css-loader` 解析 `@import`,将选项设置为`false`
-
-```css
-@import url('https://fonts.googleapis.com/css?family=Roboto');
-```
-
-> _⚠️ 谨慎使用,因为这将禁用解析**所有** `@import`,包括 css 模块 `composes: xxx from 'path/to/file.css'` 功能。_
-
-### [`modules`](https://github.com/css-modules/css-modules)
-
-查询参数 `modules` 会启用 **CSS 模块**规范。
-
-默认情况下,这将启用局部作用域 CSS。(您可以使用 `:global(...)` 或 `:global` 关闭选择器 and/or 规则。
-
-#### `Scope`
-
-默认情况下,CSS 将所有的类名暴露到全局的选择器作用域中。样式可以在局部作用域中,避免全局作用域的样式。
-
-语法 `:local(.className)` 可以被用来在局部作用域中声明 `className`。局部的作用域标识符会以模块形式暴露出去。
-
-使用 `:local`(无括号)可以为此选择器启用局部模式。`:global(.className)` 可以用来声明一个明确的全局选择器。使用`:global`(无括号)可以将此选择器切换至全局模式。
-
-loader 会用唯一的标识符(identifier)来替换局部选择器。所选择的唯一标识符以模块形式暴露出去。
-
-```css
-:local(.className) { background: red; }
-:local .className { color: green; }
-:local(.className .subClass) { color: green; }
-:local .className .subClass :global(.global-class-name) { color: blue; }
-```
-
-```css
-._23_aKvs-b8bW2Vg3fwHozO { background: red; }
-._23_aKvs-b8bW2Vg3fwHozO { color: green; }
-._23_aKvs-b8bW2Vg3fwHozO ._13LGdX8RMStbBE9w-t0gZ1 { color: green; }
-._23_aKvs-b8bW2Vg3fwHozO ._13LGdX8RMStbBE9w-t0gZ1 .global-class-name { color: blue; }
-```
-
-> :主要信息: 标识符被导出
-
-```js
-exports.locals = {
- className: '_23_aKvs-b8bW2Vg3fwHozO',
- subClass: '_13LGdX8RMStbBE9w-t0gZ1'
-}
-```
-
-建议局部选择器使用驼峰式。它们在导入 JS 模块中更容易使用。
-
-`url()` 中的 URL 在块作用域 (`:local .abc`) 规则中的表现,如同请求模块。
-
-```
-file.png => ./file.png
-~module/file.png => module/file.png
-```
-
-你可以使用 `:local(#someId)`,但不推荐这种用法。推荐使用 class 代替 id。
-你可以使用 `localIdentName` 查询参数(默认 `[hash:base64]`)来配置生成的 ident。
-
- **webpack.config.js**
- ```js
-{
- test: /\.css$/,
- use: [
- {
- loader: 'css-loader',
- options: {
- modules: true,
- localIdentName: '[path][name]__[local]--[hash:base64:5]'
- }
- }
- ]
-}
-```
-
-您还可以通过自定义 `getLocalIdent` 函数来指定绝对路径,以根据不同的模式(schema)生成类名。这需要 `webpack >= 2.2.1`(`options` 对象支持传入函数)。
-
-**webpack.config.js**
-```js
-{
- loader: 'css-loader',
- options: {
- modules: true,
- localIdentName: '[path][name]__[local]--[hash:base64:5]',
- getLocalIdent: (context, localIdentName, localName, options) => {
- return 'whatever_random_class_name'
- }
- }
-}
-```
-
-> :重要信息: 对于使用 extract-text-webpack-plugin 预渲染,你应该**在预渲染 bundle 中** 使用 `css-loader/locals` 而不是 `style-loader!css-loader` 。它不会嵌入 CSS,但只导出标识符映射(identifier map)。
-
-#### `Composing`
-
-当声明一个局部类名时,你可以与另一个局部类名组合为一个局部类。
-
-```css
-:local(.className) {
- background: red;
- color: yellow;
-}
-
-:local(.subClass) {
- composes: className;
- background: blue;
-}
-```
-
-这不会导致 CSS 本身的任何更改,而是导出多个类名。
-
-```js
-exports.locals = {
- className: '_23_aKvs-b8bW2Vg3fwHozO',
- subClass: '_13LGdX8RMStbBE9w-t0gZ1 _23_aKvs-b8bW2Vg3fwHozO'
-}
-```
-
-``` css
-._23_aKvs-b8bW2Vg3fwHozO {
- background: red;
- color: yellow;
-}
-
-._13LGdX8RMStbBE9w-t0gZ1 {
- background: blue;
-}
-```
-
-#### `Importing`
-
-从其他模块导入局部类名。
-
-```css
-:local(.continueButton) {
- composes: button from 'library/button.css';
- background: red;
-}
-```
-
-```css
-:local(.nameEdit) {
- composes: edit highlight from './edit.css';
- background: red;
-}
-```
-
-要从多个模块导入,请使用多个 `composes:` 规则。
-
-```css
-:local(.className) {
- composes: edit hightlight from './edit.css';
- composes: button from 'module/button.css';
- composes: classFromThisModule;
- background: red;
-}
-```
-
-### `minimize`
-
-默认情况下,如果模块系统指定,css-loader 将压缩 css。
-
-在某些情况下,压缩对于 css 来说是破坏性的,所以如果需要设置,可以向基于 cssnano 的 minifier(cssnano-based minifier) 提供自己的选项。更多可用信息请查看 [cssnano 文档](http://cssnano.co/guides/)。
-
-还可以使用 `minimize` 查询参数,来禁用或强制压缩。
-
-**webpack.config.js**
-```js
-{
- loader: 'css-loader',
- options: {
- minimize: true || {/* CSSNano Options */}
- }
-}
-```
-
-### `sourceMap`
-
-设置 `sourceMap` 选项查询参数来引入 source map。
-
-例如 extract-text-webpack-plugin 能够处理它们。
-
-默认情况下不启用它们,因为它们会导致运行时的额外开销,并增加了 bundle 大小 (JS source map 不会)。此外,相对路径是错误的,您需要使用包含服务器 URL 的绝对公用路径。
-
-**webpack.config.js**
-```js
-{
- loader: 'css-loader',
- options: {
- sourceMap: true
- }
-}
-```
-
-### `camelCase`
-
-By default, the exported JSON keys mirror the class names. If you want to camelize class names (useful in JS), pass the query parameter `camelCase` to css-loader.
-默认情况下,导出 JSON 键值对形式的类名。如果想要驼峰化(camelize)类名(有助于在 JS 中使用),通过设置 css-loader 的查询参数 `camelCase` 即可实现。
-
-|名称|类型|描述|
-|:--:|:--:|:----------|
-|**`true`**|`{Boolean}`|类名将被骆驼化|
-|**`'dashes'`**|`{String}`|只有类名中的破折号将被骆驼化|
-|**`'only'`** |`{String}`|在 `0.27.1` 中加入。类名将被骆驼化,初始类名将从局部移除|
-|**`'dashesOnly'`**|`{String}`|在 `0.27.1` 中加入。类名中的破折号将被骆驼化,初始类名将从局部移除|
-
-**file.css**
-```css
-.class-name {}
-```
-
-**file.js**
-```js
-import { className } from 'file.css';
-```
-
-**webpack.config.js**
-```js
-{
- loader: 'css-loader',
- options: {
- camelCase: true
- }
-}
-```
-
-### `importLoaders`
-
-查询参数 `importLoaders`,用于配置「`css-loader` 作用于 `@import` 的资源之前」有多少个 loader。
-
-**webpack.config.js**
-```js
-{
- test: /\.css$/,
- use: [
- 'style-loader',
- {
- loader: 'css-loader',
- options: {
- importLoaders: 1 // 0 => 无 loader(默认); 1 => postcss-loader; 2 => postcss-loader, sass-loader
- }
- },
- 'postcss-loader',
- 'sass-loader'
- ]
-}
-```
-
-在模块系统(即 webpack)支持原始 loader 匹配后,此功能可能在将来会发生变化。
-
-## 示例
-
-### 资源
-
-以下 `webpack.config.js` 可以加载 CSS 文件,将小体积 PNG/JPG/GIF/SVG 图像转为像字体那样的 [Data URL](https://tools.ietf.org/html/rfc2397) 嵌入,并复制较大的文件到输出目录。
-
-**webpack.config.js**
-```js
-module.exports = {
- module: {
- rules: [
- {
- test: /\.css$/,
- use: [ 'style-loader', 'css-loader' ]
- },
- {
- test: /\.(png|jpg|gif|svg|eot|ttf|woff|woff2)$/,
- loader: 'url-loader',
- options: {
- limit: 10000
- }
- }
- ]
- }
-}
-```
-
-### 提取
-
-对于生产环境构建,建议从 bundle 中提取 CSS,以便之后可以并行加载 CSS/JS 资源。可以通过使用 [extract-text-webpack-plugin](https://github.com/webpack-contrib/extract-text-webpack-plugin) 来实现,在生产环境模式运行中提取 CSS。
-
-**webpack.config.js**
-```js
-const env = process.env.NODE_ENV
-
-const ExtractTextPlugin = require('extract-text-webpack-plugin')
-
-module.exports = {
- module: {
- rules: [
- {
- test: /\.css$/,
- use: env === 'production'
- ? ExtractTextPlugin.extract({
- fallback: 'style-loader',
- use: [ 'css-loader' ]
- })
- : [ 'style-loader', 'css-loader' ]
- },
- ]
- },
- plugins: env === 'production'
- ? [
- new ExtractTextPlugin({
- filename: '[name].css'
- })
- ]
- : []
- ]
-}
-```
-
-## 维护人员
-
-
-
-
-[npm]: https://img.shields.io/npm/v/css-loader.svg
-[npm-url]: https://npmjs.com/package/css-loader
-
-[node]: https://img.shields.io/node/v/css-loader.svg
-[node-url]: https://nodejs.org
-
-[deps]: https://david-dm.org/webpack-contrib/css-loader.svg
-[deps-url]: https://david-dm.org/webpack-contrib/css-loader
-
-[tests]: http://img.shields.io/travis/webpack-contrib/css-loader.svg
-[tests-url]: https://travis-ci.org/webpack-contrib/css-loader
-
-[cover]: https://codecov.io/gh/webpack-contrib/css-loader/branch/master/graph/badge.svg
-[cover-url]: https://codecov.io/gh/webpack-contrib/css-loader
-
-[chat]: https://badges.gitter.im/webpack/webpack.svg
-[chat-url]: https://gitter.im/webpack/webpack
-
-***
-
-> 原文:https://webpack.js.org/loaders/css-loader/
diff --git a/content/loaders/dynamic-css-loader.md b/content/loaders/dynamic-css-loader.md
deleted file mode 100644
index e12bc40f0332..000000000000
--- a/content/loaders/dynamic-css-loader.md
+++ /dev/null
@@ -1,113 +0,0 @@
----
-title: dynamic-css-loader
-source: https://raw.githubusercontent.com/webpack-contrib/dynamic-css-loader/master/README.md
-edit: https://github.com/webpack-contrib/dynamic-css-loader/edit/master/README.md
----
-## Install
-
-```bash
-npm install --save-dev dynamic-css-loader
-```
-
-## Usage
-
-**TODO**
-
-## Examples
-
-**webpack.config.js**
-
-```js
-{
- test: /.../,
- use: ExtractTextPlugin.extract({
- use: [ ... ],
- fallback: [
- 'dynamic-css-loader',
- 'file-loader',
- 'extract-loader',
- ],
- }),
-},
-```
-
-**file.ext**
-
-```js
-// Source code here...
-```
-
-**bundle.js**
-
-```js
-require("dynamic-css-loader!file-loader!./file.ext");
-
-// Bundle code here...
-```
-
-## Maintainers
-
-```bash
-https://api.github.com/users/MAINTAINER
-```
-
-
-
-[npm]: https://img.shields.io/npm/v/dynamic-css-loader.svg
-[npm-url]: https://npmjs.com/package/dynamic-css-loader
-
-[deps]: https://david-dm.org/webpack-contrib/dynamic-css-loader.svg
-[deps-url]: https://david-dm.org/webpack-contrib/dynamic-css-loader
-
-[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg
-[chat-url]: https://gitter.im/webpack/webpack
-
-[test]: http://img.shields.io/travis/webpack-contrib/dynamic-css-loader.svg
-[test-url]: https://travis-ci.org/webpack-contrib/dynamic-css-loader
-
-[cover]: https://codecov.io/gh/webpack-contrib/dynamic-css-loader/branch/master/graph/badge.svg
-[cover-url]: https://codecov.io/gh/webpack-contrib/dynamic-css-loader
-
-***
-
-> 原文:https://webpack.js.org/loaders/dynamic-css-loader/
\ No newline at end of file
diff --git a/content/loaders/exports-loader.md b/content/loaders/exports-loader.md
deleted file mode 100644
index a5bfc3aaa9e5..000000000000
--- a/content/loaders/exports-loader.md
+++ /dev/null
@@ -1,70 +0,0 @@
----
-title: exports-loader
-source: https://raw.githubusercontent.com/webpack-contrib/exports-loader/master/README.md
-edit: https://github.com/webpack-contrib/exports-loader/edit/master/README.md
----
-## Install
-
-```bash
-npm i exports-loader --save
-```
-
-## 用法
-
-``` javascript
-require("exports-loader?file,parse=helpers.parse!./file.js");
-// 向文件源码添加如下代码:
-// exports["file"] = file;
-// exports["parse"] = helpers.parse;
-
-require("exports-loader?file!./file.js");
-// 向文件源码添加如下代码:
-// module.exports = file;
-```
-
-## 维护人员
-
-
-
-
-[npm]: https://img.shields.io/npm/v/exports-loader.svg
-[npm-url]: https://npmjs.com/package/exports-loader
-
-[deps]: https://david-dm.org/webpack-contrib/exports-loader.svg
-[deps-url]: https://david-dm.org/webpack-contrib/exports-loader
-
-[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg
-[chat-url]: https://gitter.im/webpack/webpack
-
-***
-
-> 原文:https://webpack.js.org/loaders/exports-loader/
diff --git a/content/loaders/expose-loader.md b/content/loaders/expose-loader.md
deleted file mode 100644
index 6c382336779c..000000000000
--- a/content/loaders/expose-loader.md
+++ /dev/null
@@ -1,128 +0,0 @@
----
-title: expose-loader
-source: https://raw.githubusercontent.com/webpack-contrib/expose-loader/master/README.md
-edit: https://github.com/webpack-contrib/expose-loader/edit/master/README.md
----
-## 安装
-
-```bash
-npm i expose-loader --save
-```
-
-## 用法
-
-**注意**: 模块必须在你的 bundle 中被 `require()` 过,否则他们将不会被暴露。
-
-``` javascript
-require("expose-loader?libraryName!./file.js");
-// 通过属性名 "libraryName" 暴露 file.js 的 exports 到全局上下文。
-// 在浏览器中,就将可以使用 window.libraryName 访问。
-```
-
-例如,假设你要将 jQuery 暴露至全局并称为 `$`:
-
-```
-require("expose-loader?$!jquery");
-```
-
-然后,`window.$` 就可以在浏览器控制台中使用。
-
-或者,你可以通过配置文件来设置:
-
-webpack v1 用法
-```
-module: {
- loaders: [
- { test: require.resolve("jquery"), loader: "expose-loader?$" }
- ]
-}
-```
-webpack v2 用法
-```
-module: {
- rules: [{
- test: require.resolve('jquery'),
- use: [{
- loader: 'expose-loader',
- options: '$'
- }]
- }]
-}
-```
-
-除了暴露为 `window. $` 之外,假设你还想把它暴露为 `window.jQuery`。
-对于多个暴露,您可以在 loader 字符串中使用 `!`:
-
-webpack v1 用法
-```
-module: {
- loaders: [
- { test: require.resolve("jquery"), loader: "expose-loader?$!expose-loader?jQuery" },
- ]
-}
-```
-webpack v2 用法
-```
-module: {
- rules: [{
- test: require.resolve('jquery'),
- use: [{
- loader: 'expose-loader',
- options: 'jQuery'
- },{
- loader: 'expose-loader',
- options: '$'
- }]
- }]
-}
-```
-
-[`require.resolve`](https://nodejs.org/api/all.html#globals_require_resolve) 是一个 node.js 调用(与 webpack 处理流程中的 `require.resolve` 无关)。`require.resolve` 用来获取模块的绝对路径(`"/.../app/node_modules/react/react.js"`)。所以这里的暴露只会作用于 React 模块。并且只在 bundle 中使用到它时,才进行暴露。
-
-
-## 维护人员
-
-
-
-
-[npm]: https://img.shields.io/npm/v/expose-loader.svg
-[npm-url]: https://npmjs.com/package/expose-loader
-
-[deps]: https://david-dm.org/webpack-contrib/expose-loader.svg
-[deps-url]: https://david-dm.org/webpack-contrib/expose-loader
-
-[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg
-[chat-url]: https://gitter.im/webpack/webpack
-
-***
-
-> 原文:https://webpack.js.org/loaders/expose-loader/
diff --git a/content/loaders/file-loader.md b/content/loaders/file-loader.md
deleted file mode 100644
index 449a2c827d90..000000000000
--- a/content/loaders/file-loader.md
+++ /dev/null
@@ -1,160 +0,0 @@
----
-title: file-loader
-source: https://raw.githubusercontent.com/webpack-contrib/file-loader/master/README.md
-edit: https://github.com/webpack-contrib/file-loader/edit/master/README.md
----
-## 安装
-
-```bash
-npm install --save-dev file-loader
-```
-
-## 用法
-
-默认情况下,生成的文件的文件名就是文件内容的 MD5 哈希值并会保留所引用资源的原始扩展名。
-
-``` javascript
-var url = require("file-loader!./file.png");
-// => 输出 file.png 文件到输出目录并返回public url
-// => 即返回 "/public-path/0dcbbaa701328a3c262cfd45869e351f.png"
-```
-
-默认情况下,文件会被输出,不过如果需要的话,也可以不输出(比如使用了服务端的 packages)。
-
-``` javascript
-var url = require("file-loader?emitFile=false!./file.png");
-// => 返回public url 但是不输出文件
-// => 即返回 "/public-path/0dcbbaa701328a3c262cfd45869e351f.png"
-```
-
-#### 文件名模板
-
-你可以使用查询参数 `name` 为你的文件配置自定义的文件名模板。例如,从你的 `context` 目录复制文件到输出目录,并且保留完整的目录结构,你可以使用 `?name=[path][name].[ext]` 。
-
-默认情况下,会按照你指定的路径和文件名输出文件,且使用相同的 URL 路径来访问文件。
-
-你可以使用 `outputPath`, `publicPath` 和 `publicPath` 查询名称参数,来指定自定义的输出路径和发布目录。
-
-```
-use: "file-loader?name=[name].[ext]&publicPath=assets/foo/&outputPath=app/images/"
-```
-
-`useRelativePath` should be `true` if you wish to generate relative URL to the each file context
-```javascript
-{
- loader: 'file-loader',
- query: {
- useRelativePath: process.env.NODE_ENV === "production"
- }
-}
-```
-
-#### 文件名模板占位符
-
-* `[ext]` 资源扩展名
-* `[name]` 资源的基本名称
-* `[path]` 资源相对于 `context` 查询参数或者配置的路径
-* `[hash]` 内容的哈希值,默认为十六进制编码的 `md5`
-* `[:hash::]` 可选配置
- * 其他的 `hashType`, 即 `sha1`, `md5`, `sha256`, `sha512`
- * 其他的 `digestType`, 即 `hex`, `base26`, `base32`, `base36`, `base49`, `base52`, `base58`, `base62`, `base64`
- * `length` 字符的长度
-* `[N]` 当前文件名按照查询参数 `regExp` 匹配后获得到第 N 个匹配结果
-#### 示例
-
-``` javascript
-require("file-loader?name=js/[hash].script.[ext]!./javascript.js");
-// => js/0dcbbaa701328a3c262cfd45869e351f.script.js
-
-require("file-loader?name=html-[hash:6].html!./page.html");
-// => html-109fa8.html
-
-require("file-loader?name=[hash]!./flash.txt");
-// => c31e9820c001c9c4a86bce33ce43b679
-
-require("file-loader?name=[sha512:hash:base64:7].[ext]!./image.png");
-// => gdyb21L.png
-// 使用 sha512 哈希值替代 md5 并且使用 7 个字符 的 base64
-
-require("file-loader?name=img-[sha512:hash:base64:7].[ext]!./image.jpg");
-// => img-VqzT5ZC.jpg
-// 使用自定义名称,sha512 哈希值替代 md5 并且使用 base64 的 7 个字符
-
-require("file-loader?name=picture.png!./myself.png");
-// => picture.png
-
-require("file-loader?name=[path][name].[ext]?[hash]!./dir/file.png")
-// => dir/file.png?e43b20c069c4a01867c31e98cbce33c9
-```
-
-## 贡献
-
-不要犹豫去创建一个pull request。所有的贡献行为都会被感谢。开发时,可以使用 `npm test` 来进行测试。
-
-## 维护人员
-
-
-
-
-## LICENSE
-
-MIT
-
-[npm]: https://img.shields.io/npm/v/file-loader.svg
-[npm-url]: https://npmjs.com/package/file-loader
-
-[deps]: https://david-dm.org/webpack-contrib/file-loader.svg
-[deps-url]: https://david-dm.org/webpack-contrib/file-loader
-
-[tests]: http://img.shields.io/travis/webpack-contrib/file-loader.svg
-[tests-url]: https://travis-ci.org/webpack-contrib/file-loader
-
-[cover]: https://codecov.io/gh/webpack-contrib/file-loader/branch/master/graph/badge.svg
-[cover-url]: https://codecov.io/gh/webpack-contrib/file-loader
-
-[chat]: https://badges.gitter.im/webpack/webpack.svg
-[chat-url]: https://gitter.im/webpack/webpack
-
-***
-
-> 原文:https://webpack.js.org/loaders/file-loader/
diff --git a/content/loaders/gzip-loader.md b/content/loaders/gzip-loader.md
deleted file mode 100644
index 712f9e4b84de..000000000000
--- a/content/loaders/gzip-loader.md
+++ /dev/null
@@ -1,97 +0,0 @@
----
-title: gzip-loader
-source: https://raw.githubusercontent.com/webpack-contrib/gzip-loader/master/README.md
-edit: https://github.com/webpack-contrib/gzip-loader/edit/master/README.md
----
-## 安装
-
-```bash
-npm install --save-dev gzip-loader
-```
-
-## 用法
-
-**webpack.config.js**
-
-```js
-module.exports = {
- module: {
- rules: [
- {
- test: /\.gz$/,
- enforce: 'pre',
- use: 'gzip-loader'
- }
- ]
- }
-}
-```
-
-**bundle.js**
-
-```js
-require("gzip-loader!./file.js.gz");
-```
-
-## 维护人员
-
-
-
-[npm]: https://img.shields.io/npm/v/gzip-loader.svg
-[npm-url]: https://npmjs.com/package/gzip-loader
-
-[deps]: https://david-dm.org/webpack-contrib/gzip-loader.svg
-[deps-url]: https://david-dm.org/webpack-contrib/gzip-loader
-
-[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg
-[chat-url]: https://gitter.im/webpack/webpack
-
-[test]: http://img.shields.io/travis/webpack-contrib/gzip-loader.svg
-[test-url]: https://travis-ci.org/webpack-contrib/gzip-loader
-
-[cover]: https://codecov.io/gh/webpack-contrib/gzip-loader/branch/master/graph/badge.svg
-[cover-url]: https://codecov.io/gh/webpack-contrib/gzip-loader
-
-***
-
-> 原文:https://webpack.js.org/loaders/gzip-loader/
diff --git a/content/loaders/html-loader.md b/content/loaders/html-loader.md
deleted file mode 100644
index 72782f0f2f11..000000000000
--- a/content/loaders/html-loader.md
+++ /dev/null
@@ -1,336 +0,0 @@
----
-title: html-loader
-source: https://raw.githubusercontent.com/webpack-contrib/html-loader/master/README.md
-edit: https://github.com/webpack-contrib/html-loader/edit/master/README.md
----
-## 安装
-
-```bash
-npm i -D html-loader
-```
-
-## Usage
-
-默认情况下,每个本地的 ` ` 都需要通过 require (`require('./image.png')`)来进行加载。您可能需要在配置中为图片指定 loader(推荐 `file-loader` 或 `url-loader` )
-
-您可以通过查询参数 `attrs`,来指定哪个标签属性组合(tag-attribute combination)应该被此 loader 处理。传递数组或以空格分隔的 `:` 组合的列表。(默认值:`attrs=img:src`)
-
-If you use ``, and lots of them make use of a `custom-src` attribute, you don't have to specify each combination `:`: just specify an empty tag like `attrs=:custom-src` and it will match every element.
-
-```js
-{
- test: /\.(html)$/,
- use: {
- loader: 'html-loader',
- options: {
- attrs: [':data-src']
- }
- }
-}
-```
-
-要完全禁用对标签属性的处理(例如,如果你在客户端处理图片加载),你可以传入 `attrs=false`。
-
-## 示例
-
-使用此配置:
-
-```js
-{
- module: {
- rules: [
- { test: /\.jpg$/, use: [ "file-loader" ] },
- { test: /\.png$/, use: [ "url-loader?mimetype=image/png" ] }
- ]
- },
- output: {
- publicPath: "http://cdn.example.com/[hash]/"
- }
-}
-```
-
-``` html
-
-
-```
-
-```js
-require("html-loader!./file.html");
-
-// => ' '
-```
-
-```js
-require("html-loader?attrs=img:data-src!./file.html");
-
-// => ' '
-```
-
-```js
-require("html-loader?attrs=img:src img:data-src!./file.html");
-require("html-loader?attrs[]=img:src&attrs[]=img:data-src!./file.html");
-
-// => ' '
-```
-
-```js
-require("html-loader?-attrs!./file.html");
-
-// => ' '
-```
-
-通过运行 `webpack --optimize-minimize` 来最小化
-
-```html
-' '
-```
-
-或者在 `webpack.conf.js` 的 rule 选项中指定 `minimize` 属性
-
-```js
-module: {
- rules: [{
- test: /\.html$/,
- use: [ {
- loader: 'html-loader',
- options: {
- minimize: true
- }
- }],
- }]
-}
-```
-
-The enabled rules for minimizing by default are the following ones:
- - removeComments
- - removeCommentsFromCDATA
- - removeCDATASectionsFromCDATA
- - collapseWhitespace
- - conservativeCollapse
- - removeAttributeQuotes
- - useShortDoctype
- - keepClosingSlash
- - minifyJS
- - minifyCSS
- - removeScriptTypeAttributes
- - removeStyleTypeAttributes
-
- The rules can be disabled using the following options in your `webpack.conf.js`
-
-```js
-module: {
- rules: [{
- test: /\.html$/,
- use: [ {
- loader: 'html-loader',
- options: {
- minimize: true,
- removeComments: false,
- collapseWhitespace: false
- }
- }],
- }]
-}
-```
-
-### 'Root-relative' URLs
-
-对于以 `/` 开头的 url,默认行为是不转换它们。如果设置了 `root` 查询参数,它将被添加到 URL 之前,然后进行转换。
-
-和上面配置相同:
-
-``` html
-
-
-```
-
-```js
-require("html-loader!./file.html");
-
-// => ' '
-```
-
-```js
-require("html-loader?root=.!./file.html");
-
-// => ' '
-```
-
-### 插值
-
-您可以使用 `interpolate` 标记,为 ES6 模板字符串启用插值语法,就像这样:
-
-```js
-require("html-loader?interpolate!./file.html");
-```
-
-```html
-
-
-${require('./components/gallery.html')}
-```
-如果你只想在模板中使用 `require`,任何其它的 `${}` 不被转换,你可以设置 `interpolate` 标记为 `require`,就像这样:
-
-```js
-require("html-loader?interpolate=require!./file.ftl");
-```
-
-```html
-
-<#list list as list>
- ${list.name}
-#list>
-
-
-
-${require('./components/gallery.html')}
-```
-
-### 导出格式
-
-这里有几种不同的可用导出格式:
-
-+ ```module.exports```(默认配置,cjs 格式)。"Hello world" 转为 ```module.exports = "Hello world";```
-+ ```exports.default``` (当设置了 ```exportAsDefault``` 参数,es6to5 格式)。"Hello world" 转为 ```exports.default = "Hello world";```
-+ ```export default``` (当设置了 ```exportAsEs6Default``` 参数,es6 格式)。"Hello world" 转为 ```export default "Hello world";```
-
-### 高级选项
-
-如果你需要传递[更多高级选项](https://github.com/webpack/html-loader/pull/46),特别是那些不能被字符串化,你还可以在 `webpack.config.js` 中定义一个 `htmlLoader` 属性:
-
-```js
-var path = require('path')
-
-module.exports = {
- ...
- module: {
- rules: [
- {
- test: /\.html$/,
- use: [ "html-loader" ]
- }
- ]
- },
- htmlLoader: {
- ignoreCustomFragments: [/\{\{.*?}}/],
- root: path.resolve(__dirname, 'assets'),
- attrs: ['img:src', 'link:href']
- }
-};
-```
-
-如果你需要定义两个不同的 loader 配置,你也可以通过 `html-loader?config=otherHtmlLoaderConfig` 改变配置的属性名:
-
-```js
-module.exports = {
- ...
- module: {
- rules: [
- {
- test: /\.html$/,
- use: [ "html-loader?config=otherHtmlLoaderConfig" ]
- }
- ]
- },
- otherHtmlLoaderConfig: {
- ...
- }
-};
-```
-
-### 导出到 HTML 文件
-
-一个很常见的场景,将 HTML 导出到 _.html_ 文件中,直接访问它们,而不是使用 javascript 注入。这可以通过3个 loader 的组合来实现:
-
-- [file-loader](https://github.com/webpack/file-loader)
-- [extract-loader](https://github.com/peerigon/extract-loader)
-- html-loader
-
-html-loader 将解析 URL,并请求图片和你所期望的一切资源。extract-loader 会将 javascript 解析为合适的 html 文件,确保引用的图片指向正确的路径,file-loader 将结果写入 .html 文件。示例:
-
-```js
-{
- test: /\.html$/,
- use: [ 'file-loader?name=[path][name].[ext]!extract-loader!html-loader' ]
-}
-```
-
-## 维护人员
-
-
-
-
-[npm]: https://img.shields.io/npm/v/html-loader.svg
-[npm-url]: https://npmjs.com/package/html-loader
-
-[deps]: https://david-dm.org/webpack/html-loader.svg
-[deps-url]: https://david-dm.org/webpack/html-loader
-
-[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg
-[chat-url]: https://gitter.im/webpack/webpack
-
-[test]: http://img.shields.io/travis/webpack/html-loader.svg
-[test-url]: https://travis-ci.org/webpack/html-loader
-
-[cover]: https://codecov.io/gh/webpack/html-loader/branch/master/graph/badge.svg
-[cover-url]: https://codecov.io/gh/webpack/html-loader
-
-***
-
-> 原文:https://webpack.js.org/loaders/html-loader/
diff --git a/content/loaders/i18n-loader.md b/content/loaders/i18n-loader.md
deleted file mode 100644
index 6bfe3e3119c1..000000000000
--- a/content/loaders/i18n-loader.md
+++ /dev/null
@@ -1,80 +0,0 @@
----
-title: i18n-loader
-source: https://raw.githubusercontent.com/webpack-contrib/i18n-loader/master/README.md
-edit: https://github.com/webpack-contrib/i18n-loader/edit/master/README.md
----
-# i18n loader for webpack
-
-## 用法
-
-### ./colors.json
-
-``` javascript
-{
- "red": "red",
- "green": "green",
- "blue": "blue"
-}
-```
-
-### ./de-de.colors.json
-
-``` javascript
-{
- "red": "rot",
- "green": "gr�n"
-}
-```
-
-### 调用
-
-``` javascript
-// 假如我们的所在区域是 "de-de-berlin"
-var locale = require("i18n!./colors.json");
-
-// 等待准备就绪,在一个 web 项目中所有地区只需要一次
-// 因为所有地区的语言被合并到一个块中
-locale(function() {
- console.log(locale.red); // 输出 rot
- console.log(locale.blue); // 输出 blue
-});
-```
-
-### 配置
-
-如果想要一次加载然后可以同步地使用,你应该告诉 loader 所有要使用的地区。
-
-``` javascript
-{
- "i18n": {
- "locales": [
- "de",
- "de-de",
- "fr"
- ],
- // "bundleTogether": false
- // 可以禁止所有地区打包到一起
- }
-}
-```
-
-### 可选的调用方法
-
-``` javascript
-require("i18n/choose!./file.js"); // 根据地区选择正确的文件,
- // 但是不会合并到对象中
-require("i18n/concat!./file.js"); // 拼接所有合适的地区
-require("i18n/merge!./file.js"); // 合并到对象中
- // ./file.js 在编译时会被排除掉
-require("i18n!./file.json") == require("i18n/merge!json!./file.json")
-```
-
-如果需要在 node 中使用,不要忘记填补(polyfill)`require`。可以参考 `webpack` 文档。
-
-## License
-
-MIT (http://www.opensource.org/licenses/mit-license.php)
-
-***
-
-> 原文:https://webpack.js.org/loaders/i18n-loader/
diff --git a/content/loaders/imports-loader.md b/content/loaders/imports-loader.md
deleted file mode 100644
index 3d5c37b8d5ca..000000000000
--- a/content/loaders/imports-loader.md
+++ /dev/null
@@ -1,136 +0,0 @@
----
-title: imports-loader
-source: https://raw.githubusercontent.com/webpack-contrib/imports-loader/master/README.md
-edit: https://github.com/webpack-contrib/imports-loader/edit/master/README.md
----
-## Install
-
-```bash
-npm install imports-loader
-```
-
-## 用法
-
-假设你有 `example.js` 这个文件
-
-```javascript
-$("img").doSomeAwesomeJqueryPluginStuff();
-```
-
-然后你可以像下面这样通过配置 imports-loader 插入 `$` 变量到模块中:
-
-``` javascript
-require("imports-loader?$=jquery!./example.js");
-```
-
-这将简单的把 `var $ = require("jquery");` 前置插入到 `example.js` 中。
-
-### 语法
-
-loader 查询值 | 含义
-------------|-------
-`angular` | `var angular = require("angular");`
-`$=jquery` | `var $ = require("jquery");`
-`define=>false` | `var define = false;`
-`config=>{size:50}` | `var config = {size:50};`
-`this=>window` | `(function () { ... }).call(window);`
-
-### 多个值
-
-使用逗号 `,` 来分隔和使用多个值:
-
-```javascript
-require("imports-loader?$=jquery,angular,config=>{size:50}!./file.js");
-```
-
-### webpack.config.js
-
-同样的,在你的 `webpack.config.js` 配置文件中进行配置会更好:
-
-```javascript
-// ./webpack.config.js
-
-module.exports = {
- ...
- module: {
- rules: [
- {
- test: require.resolve("some-module"),
- use: "imports-loader?this=>window"
- }
- ]
- }
-};
-```
-
-## 典型的使用场景
-
-### jQuery 插件
-
-`imports-loader?$=jquery`
-
-### 自定义的 Angular 模块
-
-`imports-loader?angular`
-
-### 禁用 AMD
-
-有很多模块在使用 CommonJS 前会进行 `define` 函数的检查。自从 webpack 两种格式都可以使用后,在这种场景下默认使用了 AMD 可能会造成某些问题(如果接口的实现比较古怪)。
-
-你可以像下面这样轻松的禁用 AMD
-
-```javascript
-imports-loader?define=>false
-```
-
-关于兼容性问题的更多提示,可以参考官方的文档 [Shimming Modules](http://webpack.github.io/docs/shimming-modules.html)。
-
-## Maintainers
-
-
-
-
-[npm]: https://img.shields.io/npm/v/imports-loader.svg
-[npm-url]: https://npmjs.com/package/imports-loader
-
-[deps]: https://david-dm.org/webpack-contrib/imports-loader.svg
-[deps-url]: https://david-dm.org/webpack-contrib/imports-loader
-
-[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg
-[chat-url]: https://gitter.im/webpack/webpack
-
-[test]: http://img.shields.io/travis/webpack-contrib/imports-loader.svg
-[test-url]: https://travis-ci.org/webpack-contrib/imports-loader
-
-***
-
-> 原文:https://webpack.js.org/loaders/imports-loader/
\ No newline at end of file
diff --git a/content/loaders/istanbul-instrumenter-loader.md b/content/loaders/istanbul-instrumenter-loader.md
deleted file mode 100644
index 183fe5cb4a3b..000000000000
--- a/content/loaders/istanbul-instrumenter-loader.md
+++ /dev/null
@@ -1,190 +0,0 @@
----
-title: istanbul-instrumenter-loader
-source: https://raw.githubusercontent.com/webpack-contrib/istanbul-instrumenter-loader/master/README.md
-edit: https://github.com/webpack-contrib/istanbul-instrumenter-loader/edit/master/README.md
----
-## 安装
-
-```bash
-npm i -D istanbul-instrumenter-loader
-```
-
-## 用法
-
-### `参考`
-
-* [karma-webpack](https://github.com/webpack/karma-webpack)
-* [karma-coverage-istanbul-reporter](https://github.com/mattlewis92/karma-coverage-istanbul-reporter)
-
-### `结构`
-
-```
-├─ src
-│ |– components
-│ | |– bar
-│ | │ |─ index.js
-│ | |– foo/
-│ |– index.js
-|– test
-| |– src
-| | |– components
-| | | |– foo
-| | | | |– index.js
-```
-
-为生成所有组件(包括你没写测试的那些)的代码覆盖率报告,你需要 require 所有**业务**和**测试**的代码。相关内容在 [karma-webpack 其他用法](https://github.com/webpack/karma-webpack#alternative-usage)中有涉及
-
-**test/index.js**
-```js
-// requires 所有在 `project/test/src/components/**/index.js` 中的测试
-const tests = require.context('./src/components/', true, /index\.js$/);
-
-tests.keys().forEach(tests);
-
-// requires 所有在 `project/src/components/**/index.js` 中的组件
-const components = require.context('../src/components/', true, /index\.js$/);
-
-components.keys().forEach(components);
-```
-
-> ℹ️ 以下为 `karma` 的唯一`入口`起点文件
-
-**karma.conf.js**
-```js
-config.set({
- ...
- files: [
- 'test/index.js'
- ],
- preprocessors: {
- 'test/index.js': 'webpack'
- },
- webpack: {
- ...
- module: {
- rules: [
- // 用 Istanbul 只监测业务代码
- {
- test: /\.js$/,
- use: { loader: 'istanbul-instrumenter-loader' },
- include: path.resolve('src/components/')
- }
- ]
- }
- ...
- },
- reporters: [ 'progress', 'coverage-istanbul' ],
- coverageIstanbulReporter: {
- reports: [ 'text-summary' ],
- fixWebpackSourcePaths: true
- }
- ...
-});
-```
-
-### 使用 `Babel`
-
-You must run the instrumentation as a post step
-
-```js
-{
- test: /\.js$|\.jsx$/,
- use: {
- loader: 'istanbul-instrumenter-loader',
- options: { esModules: true }
- },
- enforce: 'post',
- exclude: /node_modules|\.spec\.js$/,
-}
-```
-
-## Options
-
-此 loader 支持 `istanbul-lib-instrument` 的所有配置选项
-
-|Name|Type|Default|Description|
-|:--:|:--:|:-----:|:----------|
-|**`debug`**|`{Boolean}`|`false`|Turn on debugging mode|
-|**`compact`**|`{Boolean}`|`true`|Generate compact code|
-|**`autoWrap`**|`{Boolean}`|`false`|Set to `true` to allow return statements outside of functions|
-|**`esModules`**|`{Boolean}`|`false`|Set to `true` to instrument ES2015 Modules|
-|**`coverageVariable`**|`{String}`|`__coverage__`|Name of global coverage variable|
-|**`preserveComments`**|`{Boolean}`|`false`|Preserve comments in `output`|
-|**`produceSourceMap`**|`{Boolean}`|`false`|Set to `true` to produce a source map for the instrumented code|
-|**`sourceMapUrlCallback`**|`{Function}`|`null`|A callback function that is called when a source map URL is found in the original code. This function is called with the source filename and the source map URL|
-
-```js
-{
- test: /\.js$/,
- use: {
- loader: 'istanbul-instrumenter-loader',
- options: {...options}
- }
-}
-```
-
-## Maintainers
-
-
-
-
-[npm]: https://img.shields.io/npm/v/istanbul-instrumenter-loader.svg
-[npm-url]: https://npmjs.com/package/istanbul-instrumenter-loader
-
-[node]: https://img.shields.io/node/v/istanbul-instrumenter-loader.svg
-[node-url]: https://nodejs.org
-
-[deps]: https://david-dm.org/webpack-contrib/istanbul-instrumenter-loader.svg
-[deps-url]: https://david-dm.org/webpack-contrib/istanbul-instrumenter-loader
-
-[tests]: http://img.shields.io/travis/webpack-contrib/istanbul-instrumenter-loader.svg
-[tests-url]: https://travis-ci.org/webpack-contrib/istanbul-instrumenter-loader
-
-[cover]: https://codecov.io/gh/webpack-contrib/istanbul-instrumenter-loader/branch/master/graph/badge.svg
-[cover-url]: https://codecov.io/gh/webpack-contrib/istanbul-instrumenter-loader
-
-[chat]: https://badges.gitter.im/webpack/webpack.svg
-[chat-url]: https://gitter.im/webpack/webpack
-
-***
-
-> 原文:https://webpack.js.org/loaders/istanbul-instrumenter-loader/
diff --git a/content/loaders/jshint-loader.md b/content/loaders/jshint-loader.md
deleted file mode 100644
index cc205205ce55..000000000000
--- a/content/loaders/jshint-loader.md
+++ /dev/null
@@ -1,146 +0,0 @@
----
-title: jshint-loader
-source: https://raw.githubusercontent.com/webpack-contrib/jshint-loader/master/README.md
-edit: https://github.com/webpack-contrib/jshint-loader/edit/master/README.md
----
-## 安装
-
-```bash
-npm i jshint-loader --save
-```
-
-## 用法
-
-在 webpack 配置中启用 jshint loader:
-
-``` javascript
-module.exports = {
- module: {
- rules: [
- {
- test: /\.js$/, // 涵盖 .js 文件
- enforce: "pre", // 预先加载好 jshint loader
- exclude: /node_modules/, // 排除掉 node_modules 文件夹下的所有文件
- use: [
- {
- loader: "jshint-loader"
- }
- ]
- }
- ]
- },
-
- // 更多jslint的配置项
- jshint: {
- // 查询jslint配置项,请参考 http://www.jshint.com/docs/options/
- // 例如
- camelcase: true,
-
- //jslint 的错误信息在默认情况下会显示为 warning(警告)类信息
- //将 emitErrors 参数设置为true可使错误显示为error(错误)类信息
- emitErrors: false,
-
- //jshint默认情况下不会打断webpack编译
- //如果你想在jshint出现错误时,立刻停止编译
- //请设置failOnHint参数为true
- failOnHint: false,
-
- // 自定义报告函数
- reporter: function(errors) { }
- }
-}
-```
-
-## 自定义报告函数
-
-在默认情况下,`jshint-loader`会提供一个默认的报告方法。
-
-然而,如果你想自定义报告函数,你可以在`jshint`配置下 key 为`report`下的配置项里传入自定义的函数。(参考上文的*用法*)
-
-然后,jshint 将会生成与以下示例结构一致的
-错误/警告信息(数组)给报告函数。
-```js
-[
-{
- id: [字符串, 通常是 '(error)'],
- code: [字符串, 错误/警告(error/warning)编码],
- reason: [字符串, 错误/警告(error/warning)信息],
- evidence: [字符串, 对应生成此错误的编码]
- line: [数字]
- character: [数字]
- scope: [字符串, 消息作用域;
- 通常是 '(main)' 除非代码被解析(eval)了]
-
- [+ 还有一些旧有的参数,一般用户不必了解]
-},
-// ...
-// 更多的错误/警告
-]
-```
-
-报告函数会将 loader 的上下文信息保存在 `this` 后执行。你可以使用 `this.emitWarning(...)` 或者 `this.emitError(...)` 方法,手动触发信息的报告。请参考[关于 loader 上下文的 webpack 文档](https://webpack.js.org/api/loaders/#the-loader-context).
-
-####**注意:**`jshint reporters` 是与 `jshint-loader` **不兼容**的!
-这是因为 reporter 的输入来源,只能从一个文件,而不能同时从多个文件读取。在这种方式下的错误报告,是与 jshint 的[传统 reporters](http://www.jshint.com/docs/reporters/) 不一样的,
-因为 loader 插件(例如 jshint-loader)是会在每一个源文件上执行的,因此它们的报告函数也会分别对应每一个源文件上执行。
-
-webpack控制台输出的格式大致如下:
-```js
-...
-
-WARNING in ./path/to/file.js
-
-
-...
-```
-`
-
-## 维护人员
-
-
-
-
-[npm]: https://img.shields.io/npm/v/jshint-loader.svg
-[npm-url]: https://npmjs.com/package/jshint-loader
-
-[deps]: https://david-dm.org/webpack-contrib/jshint-loader.svg
-[deps-url]: https://david-dm.org/webpack-contrib/jshint-loader
-
-[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg
-[chat-url]: https://gitter.im/webpack/webpack
-
-[test]: http://img.shields.io/travis/webpack-contrib/jshint-loader.svg
-[test-url]: https://travis-ci.org/webpack-contrib/jshint-loader
-
-***
-
-> 原文:https://webpack.js.org/loaders/jshint-loader/
diff --git a/content/loaders/json-loader.md b/content/loaders/json-loader.md
deleted file mode 100644
index af1941e1acdc..000000000000
--- a/content/loaders/json-loader.md
+++ /dev/null
@@ -1,77 +0,0 @@
----
-title: json-loader
-source: https://raw.githubusercontent.com/webpack-contrib/json-loader/master/README.md
-edit: https://github.com/webpack-contrib/json-loader/edit/master/README.md
----
-## 安装
-
-```bash
-npm install --save-dev json-loader
-```
-
-> ⚠️ **注意:由于 `webpack >= v2.0.0` 默认支持导入 JSON 文件。如果您使用自定义文件扩展名,您可能仍然需要使用此 loader。See the [v1.0.0 -> v2.0.0 Migration Guide](https://webpack.js.org/guides/migrating/#json-loader-is-not-required-anymore) for more information**
-
-## 用法
-
-### `Inline`
-
-```js
-const json = require('json-loader!./file.json');
-```
-
-### `通过配置`(推荐)
-
-```js
-const json = require('./file.json');
-```
-
-**webpack.config.js**
-```js
-module.exports = {
- module: {
- loaders: [
- {
- test: /\.json$/,
- loader: 'json-loader'
- }
- ]
- }
-}
-```
-
-## 维护人员
-
-
-
-
-[npm]: https://img.shields.io/npm/v/json-loader.svg
-[npm-url]: https://npmjs.com/package/json-loader
-
-[node]: https://img.shields.io/node/v/json-loader.svg
-[node-url]: https://nodejs.org
-
-[deps]: https://david-dm.org/webpack/json-loader.svg
-[deps-url]: https://david-dm.org/webpack/json-loader
-
-[tests]: http://img.shields.io/travis/webpack/json-loader.svg
-[tests-url]: https://travis-ci.org/webpack/json-loader
-
-[cover]: https://coveralls.io/repos/github/webpack/json-loader/badge.svg
-[cover-url]: https://coveralls.io/github/webpack/json-loader
-
-[chat]: https://badges.gitter.im/webpack/webpack.svg
-[chat-url]: https://gitter.im/webpack/webpack
-
-***
-
-> 原文:https://webpack.js.org/loaders/json-loader/
diff --git a/content/loaders/json5-loader.md b/content/loaders/json5-loader.md
deleted file mode 100644
index ffbe45aa9e55..000000000000
--- a/content/loaders/json5-loader.md
+++ /dev/null
@@ -1,137 +0,0 @@
----
-title: json5-loader
-source: https://raw.githubusercontent.com/webpack-contrib/json5-loader/master/README.md
-edit: https://github.com/webpack-contrib/json5-loader/edit/master/README.md
----
-## 安装
-
-```sh
-$ npm install --save-dev json5-loader
-```
-
-## 用法
-
-你可以通过以下用法使用这个 loader
- * 在 webpack 配置里的 `module.loaders` 对象中配置 `json5-loader`;
- * 直接在 require 语句中使用 `json5-loader!` 前缀。
-
-假设我们有下面这个 `json5` 文件
-```js
-// appData.json5
-{
- env: 'production',
- passwordStregth: 'strong'
-}
-```
-
-#### 预先配置 loader 的用法
-
-```js
-// webpack.config.js
-module.exports = {
- entry: './index.js',
- output: { /* ... */ },
- module: {
- loaders: [
- {
- // 使所有以 .json5 结尾的文件使用 `json5-loader`
- test: /\.json5$/,
- loader: 'json5-loader'
- }
- ]
- }
-}
-```
-
-```js
-// index.js
-var appConfig = require('./appData.json5')
-// 或者 ES6 语法
-// import appConfig from './appData.json5'
-
-console.log(appConfig.env) // 'production'
-```
-#### require 语句使用 loader 前缀的用法
-```js
-var appConfig = require("json5-loader!./appData.json5")
-// 返回的是 json 解析过的对象
-
-console.log(appConfig.env) // 'production'
-```
-
-如果需要在 Node.js 中使用,不要忘记兼容(polyfill) require。更多参考 webpack 文档。
-
-## 维护人员
-
-
-
-## LICENSE
-
-MIT
-
-[npm]: https://img.shields.io/npm/v/json5-loader.svg
-[npm-url]: https://npmjs.com/package/json5-loader
-
-[deps]: https://david-dm.org/webpack-contrib/json5-loader.svg
-[deps-url]: https://david-dm.org/webpack-contrib/json5-loader
-
-[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg
-[chat-url]: https://gitter.im/webpack/webpack
-
-[test]: http://img.shields.io/travis/webpack-contrib/json5-loader.svg
-[test-url]: https://travis-ci.org/webpack-contrib/json5-loader
-
-[cover]: https://codecov.io/gh/webpack-contrib/json5-loader/branch/master/graph/badge.svg
-[cover-url]: https://codecov.io/gh/webpack-contrib/json5-loader
-
-***
-
-> 原文:https://webpack.js.org/loaders/json5-loader/
diff --git a/content/loaders/less-loader.md b/content/loaders/less-loader.md
deleted file mode 100644
index 1af3549fedae..000000000000
--- a/content/loaders/less-loader.md
+++ /dev/null
@@ -1,263 +0,0 @@
----
-title: less-loader
-source: https://raw.githubusercontent.com/webpack-contrib/less-loader/master/README.md
-edit: https://github.com/webpack-contrib/less-loader/edit/master/README.md
----
-## 安装
-
-```bash
-npm install --save-dev less-loader less
-```
-
-The less-loader requires [less](https://github.com/less/less.js) as [`peerDependency`](https://docs.npmjs.com/files/package.json#peerdependencies). Thus you are able to control the versions accurately.
-
-## 示例
-
-将 [css-loader](https://github.com/webpack-contrib/css-loader)、[style-loader](https://github.com/webpack-contrib/style) 和 less-loader 链式调用,可以把所有样式立即应用于 DOM。
-
-```js
-// webpack.config.js
-module.exports = {
- ...
- module: {
- rules: [{
- test: /\.less$/,
- use: [{
- loader: "style-loader" // creates style nodes from JS strings
- }, {
- loader: "css-loader" // translates CSS into CommonJS
- }, {
- loader: "less-loader" // compiles Less to CSS
- }]
- }]
- }
-};
-```
-
-You can pass any Less specific options to the less-loader via [loader options](https://webpack.js.org/configuration/module/#rule-options-rule-query). See the [Less documentation](http://lesscss.org/usage/#command-line-usage-options) for all available options in dash-case. Since we're passing these options to Less programmatically, you need to pass them in camelCase here:
-
-```js
-// webpack.config.js
-module.exports = {
- ...
- module: {
- rules: [{
- test: /\.less$/,
- use: [{
- loader: "style-loader"
- }, {
- loader: "css-loader"
- }, {
- loader: "less-loader", options: {
- strictMath: true,
- noIeCompat: true
- }
- }]
- }]
- }
-};
-```
-
-Unfortunately, Less doesn't map all options 1-by-1 to camelCase. When in doubt, [check their executable and search for the dash-case option](https://github.com/less/less.js/blob/3.x/bin/lessc).
-
-### In production
-
-Usually, it's recommended to extract the style sheets into a dedicated file in production using the [ExtractTextPlugin](https://github.com/webpack-contrib/extract-text-webpack-plugin). This way your styles are not dependent on JavaScript:
-
-```js
-const ExtractTextPlugin = require("extract-text-webpack-plugin");
-
-const extractLess = new ExtractTextPlugin({
- filename: "[name].[contenthash].css",
- disable: process.env.NODE_ENV === "development"
-});
-
-module.exports = {
- ...
- module: {
- rules: [{
- test: /\.less$/,
- use: extractLess.extract({
- use: [{
- loader: "css-loader"
- }, {
- loader: "less-loader"
- }],
- // use style-loader in development
- fallback: "style-loader"
- })
- }]
- },
- plugins: [
- extractLess
- ]
-};
-```
-
-## Usage
-
-### Imports
-
-Starting with less-loader 4, you can now choose between Less' builtin resolver and webpack's resolver. By default, webpack's resolver is used.
-
-#### webpack resolver
-
-webpack 提供了一种[解析文件的高级机制](https://webpack.js.org/configuration/resolve/)。less-loader 应用一个 Less 插件,并且将所有查询参数传递给 webpack resolver。所以,你可以从 `node_modules` 导入你的 less 模块。只要加一个 `~` 前缀,告诉 webpack 去查询[`模块`](https://webpack.js.org/configuration/resolve/#resolve-modules)。
-
-```css
-@import "~bootstrap/less/bootstrap";
-```
-
-重要的是只使用 `~` 前缀,因为 `~/` 会解析为主目录。webpack 需要区分`bootstrap`和`〜bootstrap`,因为 CSS 和 Less 文件没有用于导入相对文件的特殊语法。`@import "file"` 与 `@import "./file";` 写法相同
-
-##### Non-Less imports
-
-使用 webpack resolver,您可以引入任何文件类型。您只需要一个导出有效的 Less 代码的 loader。通常,您还需要设置 `issuer` 条件,以确保此规则仅适用于 Less 文件的导入:
-
-```js
-// webpack.config.js
-module.exports = {
- ...
- module: {
- rules: [{
- test: /\.js$/,
- issuer: /\.less$/,
- use: [{
- loader: "js-to-less-loader"
- }]
- }]
- }
-};
-```
-
-#### Less resolver
-
-If you specify the `paths` option, the less-loader will not use webpack's resolver. Modules, that can't be resolved in the local folder, will be searched in the given `paths`. This is Less' default behavior. `paths` should be an array with absolute paths:
-
-```js
-// webpack.config.js
-module.exports = {
- ...
- module: {
- rules: [{
- test: /\.less$/,
- use: [{
- loader: "style-loader"
- }, {
- loader: "css-loader"
- }, {
- loader: "less-loader", options: {
- paths: [
- path.resolve(__dirname, "node_modules")
- ]
- }
- }]
- }]
- }
-};
-```
-
-In this case, all webpack features like importing non-Less files or aliasing won't work of course.
-
-### 插件
-
-为了使用[插件](http://lesscss.org/usage/#plugins),只需像下面这样简单设置 `plugins` 选项:
-
-```js
-// webpack.config.js
-const CleanCSSPlugin = require("less-plugin-clean-css");
-
-module.exports = {
- ...
- {
- loader: "less-loader", options: {
- plugins: [
- new CleanCSSPlugin({ advanced: true })
- ]
- }
- }]
- ...
-};
-```
-
-### Extracting style sheets
-
-Bundling CSS with webpack has some nice advantages like referencing images and fonts with hashed urls or [hot module replacement](https://webpack.js.org/concepts/hot-module-replacement/) in development. In production, on the other hand, it's not a good idea to apply your style sheets depending on JS execution. Rendering may be delayed or even a [FOUC](https://en.wikipedia.org/wiki/Flash_of_unstyled_content) might be visible. Thus it's often still better to have them as separate files in your final production build.
-
-There are two possibilities to extract a style sheet from the bundle:
-
-- [extract-loader](https://github.com/peerigon/extract-loader) (simpler, but specialized on the css-loader's output)
-- [extract-text-webpack-plugin](https://github.com/webpack-contrib/extract-text-webpack-plugin) (more complex, but works in all use-cases)
-
-### Source maps
-
-要启用 CSS 的 source map,你需要将 `sourceMap` 选项传递给 *less-loader* 和 *css-loader*。所以你的 `webpack.config.js' 应该是这样:
-
-```javascript
-module.exports = {
- ...
- module: {
- rules: [{
- test: /\.less$/,
- use: [{
- loader: "style-loader"
- }, {
- loader: "css-loader", options: {
- sourceMap: true
- }
- }, {
- loader: "less-loader", options: {
- sourceMap: true
- }
- }]
- }]
- }
-};
-```
-
-Also checkout the [sourceMaps example](https://github.com/webpack-contrib/less-loader/tree/master/examples/sourceMaps).
-
-如果您要编辑 Chrome 中的原始 Less 文件,[这里有一个很好的博客文章](https://medium.com/@toolmantim/getting-started-with-css-sourcemaps-and-in-browser-sass-editing-b4daab987fb0)。此博客文章是关于 Sass 的,但它也适用于 Less。
-
-### CSS modules gotcha
-
-There is a known problem with Less and [CSS modules](https://github.com/css-modules/css-modules) regarding relative file paths in `url(...)` statements. [See this issue for an explanation](https://github.com/webpack-contrib/less-loader/issues/109#issuecomment-253797335).
-
-## 维护人员
-
-
-
-
-[npm]: https://img.shields.io/npm/v/less-loader.svg
-[npm-stats]: https://img.shields.io/npm/dm/less-loader.svg
-[npm-url]: https://npmjs.com/package/less-loader
-
-[node]: https://img.shields.io/node/v/less-loader.svg
-[node-url]: https://nodejs.org
-
-[deps]: https://david-dm.org/webpack-contrib/less-loader.svg
-[deps-url]: https://david-dm.org/webpack-contrib/less-loader
-
-[travis]: http://img.shields.io/travis/webpack-contrib/less-loader.svg
-[travis-url]: https://travis-ci.org/webpack-contrib/less-loader
-
-[appveyor-url]: https://ci.appveyor.com/project/jhnns/less-loader/branch/master
-[appveyor]: https://ci.appveyor.com/api/projects/status/github/webpack-contrib/less-loader?svg=true
-
-[coverage]: https://img.shields.io/codecov/c/github/webpack-contrib/less-loader.svg
-[coverage-url]: https://codecov.io/gh/webpack-contrib/less-loader
-
-[chat]: https://badges.gitter.im/webpack-contrib/webpack.svg
-[chat-url]: https://gitter.im/webpack-contrib/webpack
-
-***
-
-> 原文:https://webpack.js.org/loaders/less-loader/
\ No newline at end of file
diff --git a/content/loaders/mocha-loader.md b/content/loaders/mocha-loader.md
deleted file mode 100644
index dbad40e3238c..000000000000
--- a/content/loaders/mocha-loader.md
+++ /dev/null
@@ -1,102 +0,0 @@
----
-title: mocha-loader
-source: https://raw.githubusercontent.com/webpack-contrib/mocha-loader/master/README.md
-edit: https://github.com/webpack-contrib/mocha-loader/edit/master/README.md
----
-## 安装
-
-```bash
-npm install --save-dev mocha-loader
-```
-
-## 用法
-
-### 配置(推荐)
-
-**webpack.config.js**
-```js
-
-module.exports = {
- entry: './entry.js',
- output: {
- path: __dirname,
- filename: 'bundle.js'
- },
- module: {
- rules: [{
- test: /test\.js$/,
- use: 'mocha-loader',
- exclude: /node_modules/,
- }]
- }
-}
-```
-
-```js
-import test from './test'
-```
-
-### 命令行接口(CLI)
-
-```bash
-webpack --module-bind 'mocha-loader!./test'
-```
-
-```js
-import test from './test'
-```
-
-### Require
-
-```js
-import test from 'mocha-loader!./test'
-```
-
-## 选项
-
-## 维护人员
-
-
-
-
-[npm]: https://img.shields.io/npm/v/mocha-loader.svg
-[npm-url]: https://npmjs.com/package/mocha-loader
-
-[deps]: https://david-dm.org/webpack/mocha-loader.svg
-[deps-url]: https://david-dm.org/webpack/mocha-loader
-
-[chat]: https://badges.gitter.im/webpack/webpack.svg
-[chat-url]: https://gitter.im/webpack/webpack
-
-***
-
-> 原文:https://webpack.js.org/loaders/mocha-loader/
\ No newline at end of file
diff --git a/content/loaders/multi-loader.md b/content/loaders/multi-loader.md
deleted file mode 100644
index a84f55732968..000000000000
--- a/content/loaders/multi-loader.md
+++ /dev/null
@@ -1,79 +0,0 @@
----
-title: multi-loader
-source: https://raw.githubusercontent.com/webpack-contrib/multi-loader/master/README.md
-edit: https://github.com/webpack-contrib/multi-loader/edit/master/README.md
----
-## Install
-
-```bash
-npm i multi-loader --save
-```
-
-## Usage
-
-``` javascript
-var multi = require("multi-loader");
-{
- module: {
- loaders: [
- {
- test: /\.css$/,
- // Add CSS to the DOM
- // and
- // Return the raw content
- loader: multi(
- "style-loader!css-loader!autoprefixer-loader",
- "raw-loader"
- )
- }
- ]
- }
-}
-```
-
-## 维护人员
-
-
-
-
-[npm]: https://img.shields.io/npm/v/multi-loader.svg
-[npm-url]: https://npmjs.com/package/multi-loader
-
-[deps]: https://david-dm.org/webpack-contrib/multi-loader.svg
-[deps-url]: https://david-dm.org/webpack-contrib/multi-loader
-
-[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg
-[chat-url]: https://gitter.im/webpack/webpack
-
-***
-
-> 原文:https://webpack.js.org/loaders/multi-loader/
diff --git a/content/loaders/node-loader.md b/content/loaders/node-loader.md
deleted file mode 100644
index ff09010dff98..000000000000
--- a/content/loaders/node-loader.md
+++ /dev/null
@@ -1,105 +0,0 @@
----
-title: node-loader
-source: https://raw.githubusercontent.com/webpack-contrib/node-loader/master/README.md
-edit: https://github.com/webpack-contrib/node-loader/edit/master/README.md
----
-## 安装
-
-```bash
-npm install --save-dev node-loader
-```
-
-## 用法
-
-在 [enhanced-require](https://github.com/webpack/enhanced-require) 中执行 [node add-ons](https://nodejs.org/dist/latest/docs/api/addons.html)
-
-通过 webpack 配置、命令行或者内联使用 loader。
-
-### 通过 webpack 配置(推荐)
-
-**webpack.config.js**
-```js
-module.exports = {
- module: {
- rules: [
- {
- test: /\.node$/,
- use: 'node-loader'
- }
- ]
- }
-}
-```
-
-**在你的项目中**
-```js
-import node from 'file.node';
-```
-
-### 通过命令行(CLI)
-
-```bash
-webpack --module-bind 'node=node-loader'
-```
-
-**在你的项目中**
-```js
-import node from 'file.node';
-```
-
-### 内联使用
-
-**在你的项目中**
-```js
-import node from 'node-loader!./file.node';
-```
-
-## 维护人员
-
-
-
-
-[npm]: https://img.shields.io/npm/v/node-loader.svg
-[npm-url]: https://npmjs.com/package/node-loader
-
-[node]: https://img.shields.io/node/v/node-loader.svg
-[node-url]: https://nodejs.org
-
-[deps]: https://david-dm.org/webpack/node-loader.svg
-[deps-url]: https://david-dm.org/webpack/node-loader
-
-[chat]: https://badges.gitter.im/webpack/webpack.svg
-[chat-url]: https://gitter.im/webpack/webpack
-
-***
-
-> 原文:https://webpack.js.org/loaders/node-loader/
diff --git a/content/loaders/null-loader.md b/content/loaders/null-loader.md
deleted file mode 100755
index 99e295e74d9b..000000000000
--- a/content/loaders/null-loader.md
+++ /dev/null
@@ -1,76 +0,0 @@
----
-title: null-loader
-source: https://raw.githubusercontent.com/webpack-contrib/null-loader/master/README.md
-edit: https://github.com/webpack-contrib/null-loader/edit/master/README.md
----
-## 安装
-
-```bash
-npm i null-loader --save
-```
-
-## Examples
-
-One use for this loader is to silence modules imported by a dependency. Say, for example, your project relies on an ES6 library that imports a polyfill you don't need, so removing it will cause no loss in functionality. Test for the path to the polyfill and it won't be included in your bundle:
-
-```js
-const path = require('path');
-
-module.exports = {
- module: {
- rules: [
- {
- test: path.resolve(__dirname, 'node_modules/library/polyfill.js'),
- use: 'null-loader'
- }
- ]
- }
-}
-```
-
-## 维护人员
-
-
-
-
-[npm]: https://img.shields.io/npm/v/null-loader.svg
-[npm-url]: https://npmjs.com/package/null-loader
-
-[deps]: https://david-dm.org/webpack-contrib/null-loader.svg
-[deps-url]: https://david-dm.org/webpack-contrib/null-loader
-
-[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg
-[chat-url]: https://gitter.im/webpack/webpack
-
-***
-
-> 原文:https://webpack.js.org/loaders/null-loader/
\ No newline at end of file
diff --git a/content/loaders/polymer-webpack-loader.md b/content/loaders/polymer-webpack-loader.md
deleted file mode 100644
index 24388c72d879..000000000000
--- a/content/loaders/polymer-webpack-loader.md
+++ /dev/null
@@ -1,34 +0,0 @@
----
-title: polymer-webpack-loader
-source: https://raw.githubusercontent.com/webpack-contrib/polymer-webpack-loader/master/README.md
-edit: https://github.com/webpack-contrib/polymer-webpack-loader/edit/master/README.md
----
-## Maintainers
-
-
diff --git a/content/loaders/raw-loader.md b/content/loaders/raw-loader.md
deleted file mode 100644
index 46aadf4e43d0..000000000000
--- a/content/loaders/raw-loader.md
+++ /dev/null
@@ -1,102 +0,0 @@
----
-title: raw-loader
-source: https://raw.githubusercontent.com/webpack-contrib/raw-loader/master/README.md
-edit: https://github.com/webpack-contrib/raw-loader/edit/master/README.md
----
-## 安装
-
-```bash
-npm install --save-dev raw-loader
-```
-
-## 用法
-
-通过 webpack 配置、命令行或者内联使用 loader。
-
-### 通过 webpack 配置(推荐)
-
-**webpack.config.js**
-```js
-module.exports = {
- module: {
- rules: [
- {
- test: /\.txt$/,
- use: 'raw-loader'
- }
- ]
- }
-}
-```
-
-**在你的项目中**
-```js
-import txt from 'file.txt';
-```
-
-### 通过命令行(CLI)
-
-```bash
-webpack --module-bind 'txt=raw-loader'
-```
-
-**在你的项目中**
-```js
-import txt from 'file.txt';
-```
-
-### 内联使用
-
-**在你的项目中**
-```js
-import txt from 'raw-loader!./file.txt';
-```
-
-## 维护者
-
-
-
-[npm]: https://img.shields.io/npm/v/raw-loader.svg
-[npm-url]: https://npmjs.com/package/raw-loader
-
-[node]: https://img.shields.io/node/v/raw-loader.svg
-[node-url]: https://nodejs.org
-
-[deps]: https://david-dm.org/webpack/raw-loader.svg
-[deps-url]: https://david-dm.org/webpack/raw-loader
-
-[chat]: https://badges.gitter.im/webpack/webpack.svg
-[chat-url]: https://gitter.im/webpack/webpack
-
-***
-
-> 原文:https://webpack.js.org/loaders/raw-loader/
diff --git a/content/loaders/react-proxy-loader.md b/content/loaders/react-proxy-loader.md
deleted file mode 100644
index ac36d91584d0..000000000000
--- a/content/loaders/react-proxy-loader.md
+++ /dev/null
@@ -1,107 +0,0 @@
----
-title: react-proxy-loader
-source: https://raw.githubusercontent.com/webpack-contrib/react-proxy-loader/master/README.md
-edit: https://github.com/webpack-contrib/react-proxy-loader/edit/master/README.md
----
-## 安装
-
-```bash
-npm install react-proxy-loader
-```
-
-## 用法
-
-``` js
-var Component = require("react-proxy-loader!./Component");
-// => 返回代理组件(它按需加载。)
-// (webpack 为此组件及其依赖项创建一个额外的 chunk)
-
-var ComponentProxyMixin = require("react-proxy-loader!./Component").Mixin;
-// => 返回代理组件的 mixin
-// (这允许您为 proxy 的加载状态设置渲染)
-var ComponentProxy = React.createClass({
- mixins: [ComponentProxyMixin],
- renderUnavailable: function() {
- return Loading...
;
- }
-});
-```
-
-代理是一个react组件。所有属性都将传输到包装组件。
-
-## 配置
-
-代替(或除了)内联 loader 调用之外,还可以在配置中指定代理组件:
-
-``` js
-module.exports = {
- module: {
- loaders: [
- /* ... */
- {
- test: [
- /component\.jsx$/, // select component by RegExp
- /\.async\.jsx$/, // select component by extension
- "/abs/path/to/component.jsx" // absolute path to component
- ],
- loader: "react-proxy-loader"
- }
- ]
- }
-};
-```
-
-### Chunk 名称
-
-您可以使用 `name` 查询参数为该 chunk 提供名称:
-
-``` js
-var Component = require("react-proxy-loader?name=chunkName!./Component");
-```
-
-## 维护人员
-
-
-
-
-[npm]: https://img.shields.io/npm/v/react-proxy-loader.svg
-[npm-url]: https://npmjs.com/package/react-proxy-loader
-
-[deps]: https://david-dm.org/webpack-contrib/react-proxy-loader.svg
-[deps-url]: https://david-dm.org/webpack-contrib/react-proxy-loader
-
-[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg
-[chat-url]: https://gitter.im/webpack/webpack
-
-***
-
-> 原文:https://webpack.js.org/loaders/react-proxy-loader/
diff --git a/content/loaders/restyle-loader.md b/content/loaders/restyle-loader.md
deleted file mode 100644
index 13c76204d8af..000000000000
--- a/content/loaders/restyle-loader.md
+++ /dev/null
@@ -1,113 +0,0 @@
----
-title: restyle-loader
-source: https://raw.githubusercontent.com/webpack-contrib/restyle-loader/master/README.md
-edit: https://github.com/webpack-contrib/restyle-loader/edit/master/README.md
----
-## 安装
-
-```bash
-npm install --save-dev restyle-loader
-```
-
-## 用法
-
-[文档:使用 loader](https://webpack.js.org/loaders/)
-
-## 示例
-
-**webpack.config.js**
-
-```js
-{
- test: /\.css?$/,
- use: [
- {
- loader: "restyle-loader"
- },
- {
- loader: "file-loader",
- options: {
- name: "[name].css?[hash:8]"
- }
- }
- ]
-}
-```
-hash 需要启用热模块替换(Hot Module Replacement)
-
-**bundle.js**
-
-```js
-require("./index.css");
-
-// 在这里打包代码...
-```
-
-
-**index.html**
-
-```html
-
-
-
-
-
-```
-loader 运行后就变成
-```html
-
-
-
-
-
-```
-
-
-## 维护人员
-
-
-
-[npm]: https://img.shields.io/npm/v/restyle-loader.svg
-[npm-url]: https://npmjs.com/package/restyle-loader
-
-[deps]: https://david-dm.org/webpack-contrib/restyle-loader.svg
-[deps-url]: https://david-dm.org/webpack-contrib/restyle-loader
-
-[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg
-[chat-url]: https://gitter.im/webpack/webpack
-
-[test]: http://img.shields.io/travis/webpack-contrib/restyle-loader.svg
-[test-url]: https://travis-ci.org/webpack-contrib/restyle-loader
-
-[cover]: https://codecov.io/gh/webpack-contrib/restyle-loader/branch/master/graph/badge.svg
-[cover-url]: https://codecov.io/gh/webpack-contrib/restyle-loader
-
-***
-
-> 原文:https://webpack.js.org/loaders/restyle-loader/
\ No newline at end of file
diff --git a/content/loaders/sass-loader.md b/content/loaders/sass-loader.md
deleted file mode 100644
index d585a0784917..000000000000
--- a/content/loaders/sass-loader.md
+++ /dev/null
@@ -1,220 +0,0 @@
----
-title: sass-loader
-source: https://raw.githubusercontent.com/webpack-contrib/sass-loader/master/README.md
-edit: https://github.com/webpack-contrib/sass-loader/edit/master/README.md
----
-## 安装
-
-```bash
-npm install sass-loader node-sass webpack --save-dev
-```
-
-[node-sass](https://github.com/sass/node-sass) 和 [webpack](https://github.comwebpack) 是 sass-loader 的 [`peerDependency`](https://docs.npmjs.com/files/package.json#peerdependencies),因此能够精确控制它们的版本。
-
-## 示例
-
-通过将 [style-loader](https://github.com/webpack-contrib/style-loader) 和 [css-loader](https://github.com/webpack-contrib/css-loader) 与 sass-loader 链式调用,可以立刻将样式作用在 DOM 元素。
-
-```js
-// webpack.config.js
-module.exports = {
- ...
- module: {
- rules: [{
- test: /\.scss$/,
- use: [{
- loader: "style-loader" // 将 JS 字符串生成为 style 节点
- }, {
- loader: "css-loader" // 将 CSS 转化成 CommonJS 模块
- }, {
- loader: "sass-loader" // 将 Sass 编译成 CSS
- }]
- }]
- }
-};
-```
-
-也可以通过指定 `options` 参数,向 [node-sass](https://github.com/andrew/node-sass) 传递选项参数。例如:
-
-```js
-// webpack.config.js
-module.exports = {
- ...
- module: {
- rules: [{
- test: /\.scss$/,
- use: [{
- loader: "style-loader"
- }, {
- loader: "css-loader"
- }, {
- loader: "sass-loader",
- options: {
- includePaths: ["absolute/path/a", "absolute/path/b"]
- }
- }]
- }]
- }
-};
-```
-
-Sass 的更多选项参见 [node-sass](https://github.com/andrew/node-sass)。
-
-### 生产环境
-
-通常,生产环境下比较推荐的做法是,使用 [ExtractTextPlugin](https://github.com/webpack-contrib/extract-text-webpack-plugin) 将样式表抽离成专门的单独文件。这样,样式表将不再依赖于 JavaScript:
-
-```js
-const ExtractTextPlugin = require("extract-text-webpack-plugin");
-
-const extractSass = new ExtractTextPlugin({
- filename: "[name].[contenthash].css",
- disable: process.env.NODE_ENV === "development"
-});
-
-module.exports = {
- ...
- module: {
- rules: [{
- test: /\.scss$/,
- use: extractSass.extract({
- use: [{
- loader: "css-loader"
- }, {
- loader: "sass-loader"
- }],
- // 在开发环境使用 style-loader
- fallback: "style-loader"
- })
- }]
- },
- plugins: [
- extractSass
- ]
-};
-```
-
-## 使用
-
-### 导入(Import)
-
-webpack 提供一种[解析文件的高级的机制](https://webpack.js.org/concepts/module-resolution/)。sass-loader 使用 node-sass 的 custom importer 特性,将所有的 query 传递给 webpack 的解析引擎(resolving engine)。只要它们前面加上 `~`,告诉 webpack 它不是一个相对路径,这样就可以 import 导入 `node_modules` 目录里面的 sass 模块:
-
-```css
-@import "~bootstrap/dist/css/bootstrap";
-```
-
-重要的是,只在前面加上 `~`,因为 `~/` 会解析到主目录(home directory)。webpack 需要区分 `bootstrap` 和 `~bootstrap`,因为 CSS 和 Sass 文件没有用于导入相关文件的特殊语法。`@import "file"` 与 `@import "./file";` 这两种写法是相同的
-
-### `url(...)`的问题
-
-由于 Sass/[libsass](https://github.com/sass/libsass) 并没有提供[url rewriting](https://github.com/sass/libsass/issues/532) 的功能,所以所有的链接资源都是相对输出文件(output)而言。
-
-- 如果生成的 CSS 没有传递给 css-loader,它相对于网站的根目录。
-- 如果生成的 CSS 传递给了 css-loader,则所有的 url 都相对于入口文件(例如:`main.scss`)。
-
-第二种情况可能会带来一些问题。正常情况下我们期望相对路径的引用是相对于 `.scss` 去解析(如同在 `.css` 文件一样)。幸运的是,有2个方法可以解决这个问题:
-
-- 将 [resolve-url-loader](https://github.com/bholloway/resolve-url-loader) 设置于 loader 链中的 sass-loader 之后,就可以重写 url。
-- Library 作者一般都会提供变量,用来设置资源路径,如 [bootstrap-sass](https://github.com/twbs/bootstrap-sass) 可以通过 `$icon-font-path` 来设置。参见[this working bootstrap example](https://github.com/webpack-contrib/sass-loader/tree/master/test/bootstrapSass)。
-
-### 提取样式表
-
-使用 webpack 打包 CSS 有许多优点,在开发环境,可以通过 hashed urls 或 [模块热替换(HMR)](https://webpack.js.org/concepts/hot-module-replacement/) 引用图片和字体资源。而在线上环境,使样式依赖 JS 执行环境并不是一个好的实践。渲染会被推迟,甚至会出现 [FOUC](https://en.wikipedia.org/wiki/Flash_of_unstyled_content),因此在最终线上环境构建时,最好还是能够将 CSS 放在单独的文件中。
-
-从 bundle 中提取样式表,有2种可用的方法:
-
-- [extract-loader](https://github.com/peerigon/extract-loader) (简单,专门针对 css-loader 的输出)
-- [extract-text-webpack-plugin](https://github.com/webpack-contrib/extract-text-webpack-plugin) (复杂,但能够处理足够多的场景)
-
-### Source maps
-
-要启用 CSS source map,需要将 `sourceMap` 选项作为参数,传递给 *sass-loader* 和 *css-loader*。此时`webpack.config.js` 如下:
-
-```javascript
-module.exports = {
- ...
- devtool: "source-map", // any "source-map"-like devtool is possible
- module: {
- rules: [{
- test: /\.scss$/,
- use: [{
- loader: "style-loader"
- }, {
- loader: "css-loader", options: {
- sourceMap: true
- }
- }, {
- loader: "sass-loader", options: {
- sourceMap: true
- }
- }]
- }]
- }
-};
-```
-
-如果你要在 Chrome 中编辑原始的 Sass 文件,建议阅读[这篇不错的博客文章](https://medium.com/@toolmantim/getting-started-with-css-sourcemaps-and-in-browser-sass-editing-b4daab987fb0)。具体示例参考 [test/sourceMap](https://github.com/webpack-contrib/sass-loader/tree/master/test)。
-
-### 环境变量
-
-如果你要将 Sass 代码放在实际的入口文件(entry file)之前,可以设置 `data` 选项。此时 sass-loader 不会覆盖 `data` 选项,只会将它拼接在入口文件的内容之前。当 Sass 变量依赖于环境时,这一点尤其有用。
-
-```javascript
-{
- loader: "sass-loader",
- options: {
- data: "$env: " + process.env.NODE_ENV + ";"
- }
-}
-```
-
-**注意:**由于代码注入, 会破坏整个入口文件的 source map。通常一个简单的解决方案是,多个 Sass 文件入口。
-
-## 维护人员
-
-
-
-
-## License
-
-[MIT](http://www.opensource.org/licenses/mit-license.php)
-
-[npm]: https://img.shields.io/npm/v/sass-loader.svg
-[npm-stats]: https://img.shields.io/npm/dm/sass-loader.svg
-[npm-url]: https://npmjs.com/package/sass-loader
-
-[node]: https://img.shields.io/node/v/sass-loader.svg
-[node-url]: https://nodejs.org
-
-[deps]: https://david-dm.org/webpack-contrib/sass-loader.svg
-[deps-url]: https://david-dm.org/webpack-contrib/sass-loader
-
-[travis]: http://img.shields.io/travis/webpack-contrib/sass-loader.svg
-[travis-url]: https://travis-ci.org/webpack-contrib/sass-loader
-
-[appveyor-url]: https://ci.appveyor.com/project/webpack-contrib/sass-loader/branch/master
-[appveyor]: https://ci.appveyor.com/api/projects/status/rqpy1vaovh20ttxs/branch/master?svg=true
-
-[cover]: https://codecov.io/gh/webpack-contrib/sass-loader/branch/master/graph/badge.svg
-[cover-url]: https://codecov.io/gh/webpack-contrib/sass-loader
-
-[chat]: https://badges.gitter.im/webpack/webpack.svg
-[chat-url]: https://gitter.im/webpack/webpack
-
-> 原文:https://webpack.js.org/loaders/sass-loader/
diff --git a/content/loaders/script-loader.md b/content/loaders/script-loader.md
deleted file mode 100644
index eb2466290188..000000000000
--- a/content/loaders/script-loader.md
+++ /dev/null
@@ -1,92 +0,0 @@
----
-title: script-loader
-source: https://raw.githubusercontent.com/webpack-contrib/script-loader/master/README.md
-edit: https://github.com/webpack-contrib/script-loader/edit/master/README.md
----
-## 安装
-
-```bash
-npm install --save-dev script-loader
-```
-
-## 用法
-
-在全局上下文(global context)执行一次 JS 脚本。
-
-> :警告: 在 node.js 中不会运行
-
-### 配置(推荐)
-
-```js
-import exec from 'script.exec.js';
-```
-
-**webpack.config.js**
-```js
-module.exports = {
- module: {
- rules: [
- {
- test: /\.exec\.js$/,
- use: [ 'script-loader' ]
- }
- ]
- }
-}
-```
-
-### 内联
-
-```js
-import exec from 'script-loader!./script.js';
-```
-
-## 维护人员
-
-
-
-
-[npm]: https://img.shields.io/npm/v/script-loader.svg
-[npm-url]: https://npmjs.com/package/script-loader
-
-[node]: https://img.shields.io/node/v/script-loader.svg
-[node-url]: https://nodejs.org
-
-[deps]: https://david-dm.org/webpack/script-loader.svg
-[deps-url]: https://david-dm.org/webpack/script-loader
-
-[chat]: https://badges.gitter.im/webpack/webpack.svg
-[chat-url]: https://gitter.im/webpack/webpack
-
-***
-
-> 原文:https://webpack.js.org/loaders/script-loader/
diff --git a/content/loaders/source-map-loader.md b/content/loaders/source-map-loader.md
deleted file mode 100644
index 3279ff6c71ac..000000000000
--- a/content/loaders/source-map-loader.md
+++ /dev/null
@@ -1,84 +0,0 @@
----
-title: source-map-loader
-source: https://raw.githubusercontent.com/webpack-contrib/source-map-loader/master/README.md
-edit: https://github.com/webpack-contrib/source-map-loader/edit/master/README.md
----
-## Install
-
-```bash
-npm i -D source-map-loader
-```
-
-## 用法
-
-[文档:使用 loader](https://webpack.js.org/concepts/#loaders)
-
-
-### webpack 配置示例
-
-``` javascript
-module.exports = {
- module: {
- rules: [
- {
- test: /\.js$/,
- use: ["source-map-loader"],
- enforce: "pre"
- }
- ]
- }
-};
-```
-
-`source-map-loader` extracts existing source maps from all JavaScript entries. This includes both inline source maps as well as those linked via URL. All source map data is passed to webpack for processing as per a chosen [source map style](https://webpack.js.org/configuration/devtool/) specified by the `devtool` option in [webpack.config.js](https://webpack.js.org/configuration/).
-
-This loader is especially useful when using 3rd-party libraries having their own source maps. If not extracted and processed into the souce map of the webpack bundle, browsers may misinterpret source map data. `source-map-loader` allows webpack to maintain source map data continuity across libraries so ease of debugging is preserved.
-
-`source-map-loader` will extract from any JavaScript file, including those in the `node_modules` directory. Be mindful in setting [include](https://webpack.js.org/configuration/module/#rule-include) and [exclude](https://webpack.js.org/configuration/module/#rule-exclude) rule conditions to maximize bundling performance.
-
-## 维护人员
-
-
-
-
-[npm]: https://img.shields.io/npm/v/source-map-loader.svg
-[npm-url]: https://npmjs.com/package/source-map-loader
-
-[deps]: https://david-dm.org/webpack-contrib/source-map-loader.svg
-[deps-url]: https://david-dm.org/webpack-contrib/source-map-loader
-
-[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg
-[chat-url]: https://gitter.im/webpack/webpack
-
-***
-
-> 原文:https://webpack.js.org/loaders/source-map-loader/
diff --git a/content/loaders/style-loader.md b/content/loaders/style-loader.md
deleted file mode 100644
index df0182c2cc14..000000000000
--- a/content/loaders/style-loader.md
+++ /dev/null
@@ -1,414 +0,0 @@
----
-title: style-loader
-source: https://raw.githubusercontent.com/webpack-contrib/style-loader/master/README.md
-edit: https://github.com/webpack-contrib/style-loader/edit/master/README.md
----
-## 安装
-
-```
-npm install style-loader --save-dev
-```
-
-## 用法
-
-建议将 `style-loader` 与 [`css-loader`](https://github.com/webpack/css-loader) 结合使用
-
-**component.js**
-```js
-import style from './file.css'
-```
-
-**webpack.config.js**
-```js
-{
- module: {
- rules: [
- {
- test: /\.css$/,
- use: [
- { loader: "style-loader" },
- { loader: "css-loader" }
- ]
- }
- ]
- }
-}
-```
-
-#### `局部(CSS 模块)`
-
-在使用[局部作用域 CSS](https://github.com/webpack/css-loader#css-scope) 时,模块导出生成的(局部)标识符(identifier)。
-
-**component.js**
-```js
-import style from './file.css'
-
-style.className === "z849f98ca812"
-```
-
-### `Url`
-
-也可以添加一个URL ` `,而不是用带有 `` 标签的内联 CSS `{String}`。
-
-```js
-import url from 'file.css'
-```
-
-**webpack.config.js**
-```js
-{
- module: {
- rules: [
- {
- test: /\.css$/,
- use: [
- { loader: "style-loader/url" },
- { loader: "file-loader" }
- ]
- }
- ]
- }
-}
-```
-
-```html
-
-```
-
-> :信息来源: 使用 `url` 引用的 Source map 和资源:当 style-loader 与 `{ options: { sourceMap: true } }` 选项一起使用时,CSS 模块将生成为 `Blob`,因此相对路径无法正常工作(他们将相对于 `chrome:blob` 或 `chrome:devtools`)。为了使资源保持正确的路径,必须设置 webpack 配置中的 `output.publicPath` 属性,以便生成绝对路径。或者,您可以启用上面提到的 `convertToAbsoluteUrls` 选项。
-
-### `可选的(Useable)`
-
-按照惯例,`引用计数器 API(Reference Counter API)` 应关联到 `.useable.css`,而 `.css` 的载入,应该使用基本的 `style-loader` 用法(类似于其他文件类型,例如 `.useable.less` 和 `.less`)。
-
-**webpack.config.js**
-```js
-{
- module: {
- rules: [
- {
- test: /\.css$/,
- use: [
- { loader: "style-loader" },
- { loader: "css-loader" },
- ],
- },
- {
- test: /\.useable\.css$/,
- use: [
- {
- loader: "style-loader/useable"
- },
- { loader: "css-loader" },
- ],
- },
- ],
- },
-}
-```
-
-#### `引用计数器 API(Reference Counter API)`
-
-**component.js**
-```js
-import style from './file.css'
-
-style.use(); // = style.ref();
-style.unuse(); // = style.unref();
-```
-
-样式不会添加在 `import/require()` 上,而是在调用 `use`/`ref` 时添加。如果 `unuse`/`unref` 与 `use`/`ref` 一样频繁地被调用,那么样式将从页面中删除。
-
-:警告: 当 `unuse`/`unref` 比 `use`/`ref` 调用频繁的时候,产生的行为是不确定的。所以不要这样做。
-
-## 选项
-
-|名称|类型|默认值|描述|
-|:--:|:--:|:-----:|:----------|
-|**`base`** |`{Number}`|`true`|设置模块 ID 基础 (DLLPlugin)|
-|**`attrs`**|`{Object}`|`{}`|添加自定义 attrs 到 ``|
-|**`transform`** |`{Function}`|`false`|转换/条件加载 CSS,通过传递转换/条件函数|
-|**`insertAt`**|`{String}`|`bottom`|在给定位置处插入 ``|
-|**`insertInto`**|`{String}`|``|给定位置中插入 ``|
-|**`sourceMap`**|`{Boolean}`|`false`|启用/禁用 Sourcemap|
-|**`convertToAbsoluteUrls`**|`{Boolean}`|`false`|启用 source map 后,将相对 URL 转换为绝对 URL|
-
-### `base`
-
-当使用一个或多个 [DllPlugin](https://robertknight.github.io/posts/webpack-dll-plugins/) 时,此设置主要用作 [css 冲突](https://github.com/webpack-contrib/style-loader/issues/163) 的修补方案。`base` 可以防止 *app* 的 css(或 *DllPlugin2* 的 css)覆盖 *DllPlugin1* 的 css,方法是指定一个 css 模块的 id 大于 *DllPlugin1* 的范围,例如:
-
-**webpack.dll1.config.js**
-```js
-{
- test: /\.css$/,
- use: [
- 'style-loader',
- 'css-loader'
- ]
-}
-```
-
-**webpack.dll2.config.js**
-```js
-{
- test: /\.css$/,
- use: [
- { loader: 'style-loader', options: { base: 1000 } },
- 'css-loader'
- ]
-}
-```
-
-**webpack.app.config.js**
-```
-{
- test: /\.css$/,
- use: [
- { loader: 'style-loader', options: { base: 2000 } },
- 'css-loader'
- ]
-}
-```
-
-### `attrs`
-
-如果已定义,style-loader 将把属性值附加在 `
-```
-
-#### `Url`
-
-**component.js**
-```js
-import link from './file.css'
-```
-
-**webpack.config.js**
-```js
-{
- test: /\.css$/,
- use: [
- { loader: 'style-loader/url', options: { attrs: { id: 'id' } } }
- { loader: 'file-loader' }
- ]
-}
-```
-
-### `transform`
-
-`transform` 是一个函数,可以在通过 style-loader 加载到页面之前修改 css。
-该函数将在即将加载的 css 上调用,函数的返回值将被加载到页面,而不是原始的 css 中。
-如果 `transform` 函数的返回值是 falsy 值,那么 css 根本就不会加载到页面中。
-
-**webpack.config.js**
-```js
-{
- loader: 'style-loader'
- options: {
- transform: 'path/to/transform.js'
- }
-}
-```
-
-**transform.js**
-```js
-module.exports = function (css) {
- // Here we can change the original css
- const transformed = css.replace('.classNameA', '.classNameB')
-
- return transformed
-}
-```
-
-#### `Conditional`
-
-**webpack.config.js**
-```js
-{
- loader: 'style-loader'
- options: {
- transform: 'path/to/conditional.js'
- }
-}
-```
-
-**conditional.js**
-```js
-module.exports = function (css) {
- // 如果条件匹配则加载[和转换] CSS
- if (css.includes('something I want to check')) {
- return css;
- }
- // 如果返回 falsy 值,则不会加载 CSS
- return false
-}
-```
-
-### `insertAt`
-
-默认情况下,style-loader 将 `