From d4bb82876d16e77edd586506aa08d6dd2687e444 Mon Sep 17 00:00:00 2001 From: Peng-Jie Date: Wed, 22 Jun 2016 19:54:45 +0800 Subject: [PATCH] Fix typo: `OccurenceOrderPlugin` to `OccurrenceOrderPlugin` --- part1/README.md | 10 +++++----- part1/css-extract/webpack.config.prod.js | 2 +- part1/example1/webpack.config.js | 2 +- part1/example3/webpack.config.js | 2 +- part1/example4/webpack.config.js | 2 +- part1/example5/webpack.config.js | 2 +- part1/example6/webpack.config.prod.js | 2 +- part1/example7/webpack.config.prod.js | 2 +- part1/html-reload/webpack.config.prod.js | 2 +- part2/README.md | 8 ++++---- part2/example1/webpack.config.prod.js | 2 +- zh-TW/part1/README.md | 10 +++++----- zh-TW/part1/css-extract/webpack.config.prod.js | 2 +- zh-TW/part1/example1/webpack.config.js | 2 +- zh-TW/part1/example3/webpack.config.js | 2 +- zh-TW/part1/example4/webpack.config.js | 2 +- zh-TW/part1/example5/webpack.config.js | 2 +- zh-TW/part1/example6/webpack.config.prod.js | 2 +- zh-TW/part1/example7/webpack.config.prod.js | 2 +- zh-TW/part1/html-reload/README.md | 2 +- zh-TW/part1/html-reload/webpack.config.prod.js | 2 +- zh-TW/part2/README.md | 4 ++-- zh-TW/part2/example1/webpack.config.prod.js | 2 +- 23 files changed, 35 insertions(+), 35 deletions(-) diff --git a/part1/README.md b/part1/README.md index f5516e5..fee08ba 100644 --- a/part1/README.md +++ b/part1/README.md @@ -300,7 +300,7 @@ Going over the new properties one by one: This time, when you run `webpack`, now that you have the `UglifyJsPlugin` this could reduce your imaginary 900KB file to 200KB through processes such as removing all the whitespace. -You can also add the [OccurenceOrderPlugin](https://webpack.github.io/docs/list-of-plugins.html#occurrenceorderplugin) +You can also add the [OccurrenceOrderPlugin](https://webpack.github.io/docs/list-of-plugins.html#occurrenceorderplugin) > Assign the module and chunk ids by occurrence count. Ids that are used often get lower (shorter) ids. This makes ids predictable, reduces to total file size and is recommended. @@ -323,7 +323,7 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin() + new webpack.optimize.OccurrenceOrderPlugin() ] } ``` @@ -387,7 +387,7 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin() + new webpack.optimize.OccurrenceOrderPlugin() ], module: { loaders: [{ @@ -470,7 +470,7 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin(), + new webpack.optimize.OccurrenceOrderPlugin(), new HtmlWebpackPlugin({ template: './src/index.html' }) @@ -622,7 +622,7 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin(), + new webpack.optimize.OccurrenceOrderPlugin(), new HtmlWebpackPlugin({ template: './src/index.html' }) diff --git a/part1/css-extract/webpack.config.prod.js b/part1/css-extract/webpack.config.prod.js index e6078a4..6a1aaac 100644 --- a/part1/css-extract/webpack.config.prod.js +++ b/part1/css-extract/webpack.config.prod.js @@ -16,7 +16,7 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin(), + new webpack.optimize.OccurrenceOrderPlugin(), new HtmlWebpackPlugin({ template: './src/index.html' }), diff --git a/part1/example1/webpack.config.js b/part1/example1/webpack.config.js index 04c29eb..10baa40 100644 --- a/part1/example1/webpack.config.js +++ b/part1/example1/webpack.config.js @@ -13,7 +13,7 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin() + new webpack.optimize.OccurrenceOrderPlugin() ], module: { loaders: [{ diff --git a/part1/example3/webpack.config.js b/part1/example3/webpack.config.js index 0b24833..2e1056f 100644 --- a/part1/example3/webpack.config.js +++ b/part1/example3/webpack.config.js @@ -13,6 +13,6 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin() + new webpack.optimize.OccurrenceOrderPlugin() ] } diff --git a/part1/example4/webpack.config.js b/part1/example4/webpack.config.js index 04c29eb..10baa40 100644 --- a/part1/example4/webpack.config.js +++ b/part1/example4/webpack.config.js @@ -13,7 +13,7 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin() + new webpack.optimize.OccurrenceOrderPlugin() ], module: { loaders: [{ diff --git a/part1/example5/webpack.config.js b/part1/example5/webpack.config.js index 6bab936..0963301 100644 --- a/part1/example5/webpack.config.js +++ b/part1/example5/webpack.config.js @@ -14,7 +14,7 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin(), + new webpack.optimize.OccurrenceOrderPlugin(), new HtmlWebpackPlugin({ template: './src/index.html' }) diff --git a/part1/example6/webpack.config.prod.js b/part1/example6/webpack.config.prod.js index ed72d58..387cd73 100644 --- a/part1/example6/webpack.config.prod.js +++ b/part1/example6/webpack.config.prod.js @@ -15,7 +15,7 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin(), + new webpack.optimize.OccurrenceOrderPlugin(), new HtmlWebpackPlugin({ template: './src/index.html' }) diff --git a/part1/example7/webpack.config.prod.js b/part1/example7/webpack.config.prod.js index ed72d58..387cd73 100644 --- a/part1/example7/webpack.config.prod.js +++ b/part1/example7/webpack.config.prod.js @@ -15,7 +15,7 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin(), + new webpack.optimize.OccurrenceOrderPlugin(), new HtmlWebpackPlugin({ template: './src/index.html' }) diff --git a/part1/html-reload/webpack.config.prod.js b/part1/html-reload/webpack.config.prod.js index 8c60d7a..03e1d09 100644 --- a/part1/html-reload/webpack.config.prod.js +++ b/part1/html-reload/webpack.config.prod.js @@ -15,7 +15,7 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin(), + new webpack.optimize.OccurrenceOrderPlugin(), new HtmlWebpackPlugin({ template: './src/index.html' }), diff --git a/part2/README.md b/part2/README.md index 6ba49a5..06f1075 100644 --- a/part2/README.md +++ b/part2/README.md @@ -168,7 +168,7 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin(), + new webpack.optimize.OccurrenceOrderPlugin(), new HtmlWebpackPlugin({ template: './src/index.html' }) @@ -218,8 +218,8 @@ by an extreme amount. `include` prevents this by specifying that this loader only applies to `.js` files in your `src` directory. -Alternatively you could change `include: path.join(__dirname, 'src')` to `exclude: /node_modules/` which will then -include everything but the `node_modules` folder. More information can be found [here](https://webpack.github.io/docs/configuration.html#module-loaders). +Alternatively you could change `include: path.join(__dirname, 'src')` to `exclude: /node_modules/` which will then +include everything but the `node_modules` folder. More information can be found [here](https://webpack.github.io/docs/configuration.html#module-loaders). ## We are Done? @@ -291,7 +291,7 @@ plugins: [ warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin(), + new webpack.optimize.OccurrenceOrderPlugin(), new HtmlWebpackPlugin({ template: './src/index.html' }), diff --git a/part2/example1/webpack.config.prod.js b/part2/example1/webpack.config.prod.js index b984c05..6ef5a28 100644 --- a/part2/example1/webpack.config.prod.js +++ b/part2/example1/webpack.config.prod.js @@ -17,7 +17,7 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin(), + new webpack.optimize.OccurrenceOrderPlugin(), new HtmlWebpackPlugin({ template: './src/index.html' }), diff --git a/zh-TW/part1/README.md b/zh-TW/part1/README.md index 74d363a..e420616 100644 --- a/zh-TW/part1/README.md +++ b/zh-TW/part1/README.md @@ -270,7 +270,7 @@ module.exports = { 這個時候,當我們執行 `webpack`,`UglifyJsPlugin` 通過像是移除所有空白的處理,可以將你的檔案減少至 200KB。 -你也可以加入 [OccurenceOrderPlugin](https://webpack.github.io/docs/list-of-plugins.html#occurrenceorderplugin)。 +你也可以加入 [OccurrenceOrderPlugin](https://webpack.github.io/docs/list-of-plugins.html#occurrenceorderplugin)。 > 透過發生次數分配 module 和 chunk 的 id。一些常用的 Id 取得較低(短)的 id。這使得 id 可以預測,減少檔案的大小和建議。 @@ -293,7 +293,7 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin() + new webpack.optimize.OccurrenceOrderPlugin() ] } ``` @@ -351,7 +351,7 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin() + new webpack.optimize.OccurrenceOrderPlugin() ], module: { loaders: [{ @@ -431,7 +431,7 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin(), + new webpack.optimize.OccurrenceOrderPlugin(), new HtmlWebpackPlugin({ template: './src/index.html' }) @@ -572,7 +572,7 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin(), + new webpack.optimize.OccurrenceOrderPlugin(), new HtmlWebpackPlugin({ template: './src/index.html' }) diff --git a/zh-TW/part1/css-extract/webpack.config.prod.js b/zh-TW/part1/css-extract/webpack.config.prod.js index e6078a4..6a1aaac 100644 --- a/zh-TW/part1/css-extract/webpack.config.prod.js +++ b/zh-TW/part1/css-extract/webpack.config.prod.js @@ -16,7 +16,7 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin(), + new webpack.optimize.OccurrenceOrderPlugin(), new HtmlWebpackPlugin({ template: './src/index.html' }), diff --git a/zh-TW/part1/example1/webpack.config.js b/zh-TW/part1/example1/webpack.config.js index 04c29eb..10baa40 100644 --- a/zh-TW/part1/example1/webpack.config.js +++ b/zh-TW/part1/example1/webpack.config.js @@ -13,7 +13,7 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin() + new webpack.optimize.OccurrenceOrderPlugin() ], module: { loaders: [{ diff --git a/zh-TW/part1/example3/webpack.config.js b/zh-TW/part1/example3/webpack.config.js index 0b24833..2e1056f 100644 --- a/zh-TW/part1/example3/webpack.config.js +++ b/zh-TW/part1/example3/webpack.config.js @@ -13,6 +13,6 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin() + new webpack.optimize.OccurrenceOrderPlugin() ] } diff --git a/zh-TW/part1/example4/webpack.config.js b/zh-TW/part1/example4/webpack.config.js index 04c29eb..10baa40 100644 --- a/zh-TW/part1/example4/webpack.config.js +++ b/zh-TW/part1/example4/webpack.config.js @@ -13,7 +13,7 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin() + new webpack.optimize.OccurrenceOrderPlugin() ], module: { loaders: [{ diff --git a/zh-TW/part1/example5/webpack.config.js b/zh-TW/part1/example5/webpack.config.js index 6bab936..0963301 100644 --- a/zh-TW/part1/example5/webpack.config.js +++ b/zh-TW/part1/example5/webpack.config.js @@ -14,7 +14,7 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin(), + new webpack.optimize.OccurrenceOrderPlugin(), new HtmlWebpackPlugin({ template: './src/index.html' }) diff --git a/zh-TW/part1/example6/webpack.config.prod.js b/zh-TW/part1/example6/webpack.config.prod.js index ed72d58..387cd73 100644 --- a/zh-TW/part1/example6/webpack.config.prod.js +++ b/zh-TW/part1/example6/webpack.config.prod.js @@ -15,7 +15,7 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin(), + new webpack.optimize.OccurrenceOrderPlugin(), new HtmlWebpackPlugin({ template: './src/index.html' }) diff --git a/zh-TW/part1/example7/webpack.config.prod.js b/zh-TW/part1/example7/webpack.config.prod.js index ed72d58..387cd73 100644 --- a/zh-TW/part1/example7/webpack.config.prod.js +++ b/zh-TW/part1/example7/webpack.config.prod.js @@ -15,7 +15,7 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin(), + new webpack.optimize.OccurrenceOrderPlugin(), new HtmlWebpackPlugin({ template: './src/index.html' }) diff --git a/zh-TW/part1/html-reload/README.md b/zh-TW/part1/html-reload/README.md index 7d6e92b..b46d0e8 100644 --- a/zh-TW/part1/html-reload/README.md +++ b/zh-TW/part1/html-reload/README.md @@ -88,7 +88,7 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin(), + new webpack.optimize.OccurrenceOrderPlugin(), new HtmlWebpackPlugin({ template: './src/index.html' }), diff --git a/zh-TW/part1/html-reload/webpack.config.prod.js b/zh-TW/part1/html-reload/webpack.config.prod.js index 8c60d7a..03e1d09 100644 --- a/zh-TW/part1/html-reload/webpack.config.prod.js +++ b/zh-TW/part1/html-reload/webpack.config.prod.js @@ -15,7 +15,7 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin(), + new webpack.optimize.OccurrenceOrderPlugin(), new HtmlWebpackPlugin({ template: './src/index.html' }), diff --git a/zh-TW/part2/README.md b/zh-TW/part2/README.md index e3d8c63..3ca628f 100644 --- a/zh-TW/part2/README.md +++ b/zh-TW/part2/README.md @@ -151,7 +151,7 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin(), + new webpack.optimize.OccurrenceOrderPlugin(), new HtmlWebpackPlugin({ template: './src/index.html' }) @@ -260,7 +260,7 @@ plugins: [ warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin(), + new webpack.optimize.OccurrenceOrderPlugin(), new HtmlWebpackPlugin({ template: './src/index.html' }), diff --git a/zh-TW/part2/example1/webpack.config.prod.js b/zh-TW/part2/example1/webpack.config.prod.js index b984c05..6ef5a28 100644 --- a/zh-TW/part2/example1/webpack.config.prod.js +++ b/zh-TW/part2/example1/webpack.config.prod.js @@ -17,7 +17,7 @@ module.exports = { warnings: false, }, }), - new webpack.optimize.OccurenceOrderPlugin(), + new webpack.optimize.OccurrenceOrderPlugin(), new HtmlWebpackPlugin({ template: './src/index.html' }),