Skip to content

Commit 2091b0f

Browse files
neighborhood999AriaFallah
authored andcommitted
Fix typo: OccurenceOrderPlugin to OccurrenceOrderPlugin (#36)
1 parent 8d51e5e commit 2091b0f

File tree

23 files changed

+35
-35
lines changed

23 files changed

+35
-35
lines changed

part1/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ Going over the new properties one by one:
300300
This time, when you run `webpack`, now that you have the `UglifyJsPlugin` this could reduce your
301301
imaginary 900KB file to 200KB through processes such as removing all the whitespace.
302302

303-
You can also add the [OccurenceOrderPlugin](https://webpack.github.io/docs/list-of-plugins.html#occurrenceorderplugin)
303+
You can also add the [OccurrenceOrderPlugin](https://webpack.github.io/docs/list-of-plugins.html#occurrenceorderplugin)
304304

305305
> 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.
306306
@@ -323,7 +323,7 @@ module.exports = {
323323
warnings: false,
324324
},
325325
}),
326-
new webpack.optimize.OccurenceOrderPlugin()
326+
new webpack.optimize.OccurrenceOrderPlugin()
327327
]
328328
}
329329
```
@@ -387,7 +387,7 @@ module.exports = {
387387
warnings: false,
388388
},
389389
}),
390-
new webpack.optimize.OccurenceOrderPlugin()
390+
new webpack.optimize.OccurrenceOrderPlugin()
391391
],
392392
module: {
393393
loaders: [{
@@ -470,7 +470,7 @@ module.exports = {
470470
warnings: false,
471471
},
472472
}),
473-
new webpack.optimize.OccurenceOrderPlugin(),
473+
new webpack.optimize.OccurrenceOrderPlugin(),
474474
new HtmlWebpackPlugin({
475475
template: './src/index.html'
476476
})
@@ -622,7 +622,7 @@ module.exports = {
622622
warnings: false,
623623
},
624624
}),
625-
new webpack.optimize.OccurenceOrderPlugin(),
625+
new webpack.optimize.OccurrenceOrderPlugin(),
626626
new HtmlWebpackPlugin({
627627
template: './src/index.html'
628628
})

part1/css-extract/webpack.config.prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = {
1616
warnings: false,
1717
},
1818
}),
19-
new webpack.optimize.OccurenceOrderPlugin(),
19+
new webpack.optimize.OccurrenceOrderPlugin(),
2020
new HtmlWebpackPlugin({
2121
template: './src/index.html'
2222
}),

part1/example1/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = {
1313
warnings: false,
1414
},
1515
}),
16-
new webpack.optimize.OccurenceOrderPlugin()
16+
new webpack.optimize.OccurrenceOrderPlugin()
1717
],
1818
module: {
1919
loaders: [{

part1/example3/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ module.exports = {
1313
warnings: false,
1414
},
1515
}),
16-
new webpack.optimize.OccurenceOrderPlugin()
16+
new webpack.optimize.OccurrenceOrderPlugin()
1717
]
1818
}

part1/example4/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = {
1313
warnings: false,
1414
},
1515
}),
16-
new webpack.optimize.OccurenceOrderPlugin()
16+
new webpack.optimize.OccurrenceOrderPlugin()
1717
],
1818
module: {
1919
loaders: [{

part1/example5/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = {
1414
warnings: false,
1515
},
1616
}),
17-
new webpack.optimize.OccurenceOrderPlugin(),
17+
new webpack.optimize.OccurrenceOrderPlugin(),
1818
new HtmlWebpackPlugin({
1919
template: './src/index.html'
2020
})

part1/example6/webpack.config.prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = {
1515
warnings: false,
1616
},
1717
}),
18-
new webpack.optimize.OccurenceOrderPlugin(),
18+
new webpack.optimize.OccurrenceOrderPlugin(),
1919
new HtmlWebpackPlugin({
2020
template: './src/index.html'
2121
})

part1/example7/webpack.config.prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = {
1515
warnings: false,
1616
},
1717
}),
18-
new webpack.optimize.OccurenceOrderPlugin(),
18+
new webpack.optimize.OccurrenceOrderPlugin(),
1919
new HtmlWebpackPlugin({
2020
template: './src/index.html'
2121
})

part1/html-reload/webpack.config.prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = {
1515
warnings: false,
1616
},
1717
}),
18-
new webpack.optimize.OccurenceOrderPlugin(),
18+
new webpack.optimize.OccurrenceOrderPlugin(),
1919
new HtmlWebpackPlugin({
2020
template: './src/index.html'
2121
}),

part2/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ module.exports = {
168168
warnings: false,
169169
},
170170
}),
171-
new webpack.optimize.OccurenceOrderPlugin(),
171+
new webpack.optimize.OccurrenceOrderPlugin(),
172172
new HtmlWebpackPlugin({
173173
template: './src/index.html'
174174
})
@@ -218,8 +218,8 @@ by an extreme amount.
218218

219219
`include` prevents this by specifying that this loader only applies to `.js` files in your `src` directory.
220220

221-
Alternatively you could change `include: path.join(__dirname, 'src')` to `exclude: /node_modules/` which will then
222-
include everything but the `node_modules` folder. More information can be found [here](https://webpack.github.io/docs/configuration.html#module-loaders).
221+
Alternatively you could change `include: path.join(__dirname, 'src')` to `exclude: /node_modules/` which will then
222+
include everything but the `node_modules` folder. More information can be found [here](https://webpack.github.io/docs/configuration.html#module-loaders).
223223

224224
## We are Done?
225225

@@ -291,7 +291,7 @@ plugins: [
291291
warnings: false,
292292
},
293293
}),
294-
new webpack.optimize.OccurenceOrderPlugin(),
294+
new webpack.optimize.OccurrenceOrderPlugin(),
295295
new HtmlWebpackPlugin({
296296
template: './src/index.html'
297297
}),

0 commit comments

Comments
 (0)