Skip to content

Commit 69c412b

Browse files
EugeneHlushkomontogeek
authored andcommitted
docs(config) Optimization portableRecords doc (#2456)
* document `optimization.portableRecords` * Fixes #1968 πŸŽ‰ πŸŽ‰ πŸŽ‰
1 parent fd3c835 commit 69c412b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

β€Žsrc/content/configuration/optimization.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,3 +382,22 @@ module.exports = {
382382
}
383383
};
384384
```
385+
386+
## `optimization.portableRecords`
387+
388+
`bool`
389+
390+
`optimization.portableRecords` tells webpack to generate records with relative paths to be able to move the context folder.
391+
392+
By default `optimization.portableRecords` is disabled. Automatically enabled if at least one of the records options provided to webpack config: [`recordsPath`](/configuration/other-options/#recordspath), [`recordsInputPath`](/configuration/other-options/#recordsinputpath), [`recordsOutputPath`](/configuration/other-options/#recordsoutputpath).
393+
394+
__webpack.config.js__
395+
396+
```js
397+
module.exports = {
398+
//...
399+
optimization: {
400+
portableRecords: true
401+
}
402+
};
403+
```

0 commit comments

Comments
Β (0)