Skip to content

Commit

Permalink
Merge pull request #2542 from webpack/revert-2533-optimization/moduleids
Browse files Browse the repository at this point in the history
Revert "docs(config) optimization moduleIds"
  • Loading branch information
EugeneHlushko committed Sep 25, 2018
2 parents 9a82757 + 85d64f8 commit fb48639
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions src/content/configuration/optimization.md
Expand Up @@ -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`
Expand Down

0 comments on commit fb48639

Please sign in to comment.