From 85d64f806c3bf817e69e6b7cea93e44fbfd4ab31 Mon Sep 17 00:00:00 2001 From: Eugene Hlushko Date: Tue, 25 Sep 2018 15:23:59 +0300 Subject: [PATCH] Revert "docs(config) optimization moduleIds (#2533)" This reverts commit 9a827575b0fb6a2c1e671328384ba1d30dedd3ec. --- src/content/configuration/optimization.md | 27 ----------------------- 1 file changed, 27 deletions(-) diff --git a/src/content/configuration/optimization.md b/src/content/configuration/optimization.md index deac1a586749..f27abe3abf65 100644 --- a/src/content/configuration/optimization.md +++ b/src/content/configuration/optimization.md @@ -177,33 +177,6 @@ module.exports = { }; ``` -## `optimization.moduleIds` - -`bool: false` `string: natural, named, hashed, size, total-size` - -Tells webpack which algorithm to use when choosing module ids. Setting `optimization.moduleIds` to `false` tells webpack that none of built-in algorithms should be used, as custom one can be provided via plugin. - -The following string values are supported: - -Option | Description ---------------------- | ----------------------- -`natural` | Numeric ids in order of usage. -`named` | Readable ids for better debugging. -`hashed` | short hashes as ids for better long term caching. -`size` | Numeric ids focused on minimal initial download size. -`total-size` | numeric ids focused on minimal total download size. - -__webpack.config.js__ - -```js -module.exports = { - //... - optimization: { - moduleIds: 'hashed' - } -}; -``` - ## `optimization.nodeEnv` `string` `bool: false`