Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions part1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -323,7 +323,7 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin()
new webpack.optimize.OccurrenceOrderPlugin()
]
}
```
Expand Down Expand Up @@ -387,7 +387,7 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin()
new webpack.optimize.OccurrenceOrderPlugin()
],
module: {
loaders: [{
Expand Down Expand Up @@ -470,7 +470,7 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.optimize.OccurrenceOrderPlugin(),
new HtmlWebpackPlugin({
template: './src/index.html'
})
Expand Down Expand Up @@ -622,7 +622,7 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.optimize.OccurrenceOrderPlugin(),
new HtmlWebpackPlugin({
template: './src/index.html'
})
Expand Down
2 changes: 1 addition & 1 deletion part1/css-extract/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.optimize.OccurrenceOrderPlugin(),
new HtmlWebpackPlugin({
template: './src/index.html'
}),
Expand Down
2 changes: 1 addition & 1 deletion part1/example1/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin()
new webpack.optimize.OccurrenceOrderPlugin()
],
module: {
loaders: [{
Expand Down
2 changes: 1 addition & 1 deletion part1/example3/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin()
new webpack.optimize.OccurrenceOrderPlugin()
]
}
2 changes: 1 addition & 1 deletion part1/example4/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin()
new webpack.optimize.OccurrenceOrderPlugin()
],
module: {
loaders: [{
Expand Down
2 changes: 1 addition & 1 deletion part1/example5/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.optimize.OccurrenceOrderPlugin(),
new HtmlWebpackPlugin({
template: './src/index.html'
})
Expand Down
2 changes: 1 addition & 1 deletion part1/example6/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.optimize.OccurrenceOrderPlugin(),
new HtmlWebpackPlugin({
template: './src/index.html'
})
Expand Down
2 changes: 1 addition & 1 deletion part1/example7/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.optimize.OccurrenceOrderPlugin(),
new HtmlWebpackPlugin({
template: './src/index.html'
})
Expand Down
2 changes: 1 addition & 1 deletion part1/html-reload/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.optimize.OccurrenceOrderPlugin(),
new HtmlWebpackPlugin({
template: './src/index.html'
}),
Expand Down
8 changes: 4 additions & 4 deletions part2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.optimize.OccurrenceOrderPlugin(),
new HtmlWebpackPlugin({
template: './src/index.html'
})
Expand Down Expand Up @@ -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?

Expand Down Expand Up @@ -291,7 +291,7 @@ plugins: [
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.optimize.OccurrenceOrderPlugin(),
new HtmlWebpackPlugin({
template: './src/index.html'
}),
Expand Down
2 changes: 1 addition & 1 deletion part2/example1/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.optimize.OccurrenceOrderPlugin(),
new HtmlWebpackPlugin({
template: './src/index.html'
}),
Expand Down
10 changes: 5 additions & 5 deletions zh-TW/part1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 可以預測,減少檔案的大小和建議。

Expand All @@ -293,7 +293,7 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin()
new webpack.optimize.OccurrenceOrderPlugin()
]
}
```
Expand Down Expand Up @@ -351,7 +351,7 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin()
new webpack.optimize.OccurrenceOrderPlugin()
],
module: {
loaders: [{
Expand Down Expand Up @@ -431,7 +431,7 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.optimize.OccurrenceOrderPlugin(),
new HtmlWebpackPlugin({
template: './src/index.html'
})
Expand Down Expand Up @@ -572,7 +572,7 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.optimize.OccurrenceOrderPlugin(),
new HtmlWebpackPlugin({
template: './src/index.html'
})
Expand Down
2 changes: 1 addition & 1 deletion zh-TW/part1/css-extract/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.optimize.OccurrenceOrderPlugin(),
new HtmlWebpackPlugin({
template: './src/index.html'
}),
Expand Down
2 changes: 1 addition & 1 deletion zh-TW/part1/example1/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin()
new webpack.optimize.OccurrenceOrderPlugin()
],
module: {
loaders: [{
Expand Down
2 changes: 1 addition & 1 deletion zh-TW/part1/example3/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin()
new webpack.optimize.OccurrenceOrderPlugin()
]
}
2 changes: 1 addition & 1 deletion zh-TW/part1/example4/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin()
new webpack.optimize.OccurrenceOrderPlugin()
],
module: {
loaders: [{
Expand Down
2 changes: 1 addition & 1 deletion zh-TW/part1/example5/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.optimize.OccurrenceOrderPlugin(),
new HtmlWebpackPlugin({
template: './src/index.html'
})
Expand Down
2 changes: 1 addition & 1 deletion zh-TW/part1/example6/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.optimize.OccurrenceOrderPlugin(),
new HtmlWebpackPlugin({
template: './src/index.html'
})
Expand Down
2 changes: 1 addition & 1 deletion zh-TW/part1/example7/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.optimize.OccurrenceOrderPlugin(),
new HtmlWebpackPlugin({
template: './src/index.html'
})
Expand Down
2 changes: 1 addition & 1 deletion zh-TW/part1/html-reload/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.optimize.OccurrenceOrderPlugin(),
new HtmlWebpackPlugin({
template: './src/index.html'
}),
Expand Down
2 changes: 1 addition & 1 deletion zh-TW/part1/html-reload/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.optimize.OccurrenceOrderPlugin(),
new HtmlWebpackPlugin({
template: './src/index.html'
}),
Expand Down
4 changes: 2 additions & 2 deletions zh-TW/part2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.optimize.OccurrenceOrderPlugin(),
new HtmlWebpackPlugin({
template: './src/index.html'
})
Expand Down Expand Up @@ -260,7 +260,7 @@ plugins: [
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.optimize.OccurrenceOrderPlugin(),
new HtmlWebpackPlugin({
template: './src/index.html'
}),
Expand Down
2 changes: 1 addition & 1 deletion zh-TW/part2/example1/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {
warnings: false,
},
}),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.optimize.OccurrenceOrderPlugin(),
new HtmlWebpackPlugin({
template: './src/index.html'
}),
Expand Down