Skip to content

Commit 66b96c4

Browse files
EugeneHlushkomontogeek
authored andcommitted
docs(config) document new temporary option for output (#2994)
* docs(config) document new temporary option for output * docs(config) combine the two sentences from a warning
1 parent 07ea44b commit 66b96c4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/content/configuration/output.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -977,3 +977,20 @@ module.exports = {
977977
```
978978

979979
will name the AMD module of the UMD build. Otherwise an anonymous `define` is used.
980+
981+
## `output.futureEmitAssets`
982+
983+
`boolean: false`
984+
985+
Tells webpack to use the future version of asset emitting logic, which allows freeing memory of assets after emitting. It could break plugins which assume that assets are still readable after they were emitted.
986+
987+
W> `output.futureEmitAssets` option will be removed in webpack v5.0.0 and this behaviour will become the new default.
988+
989+
```javascript
990+
module.exports = {
991+
//...
992+
output: {
993+
futureEmitAssets: true
994+
}
995+
};
996+
```

0 commit comments

Comments
 (0)