From db0f16fd481fa4c742c6ddf9b228901ed43b7e91 Mon Sep 17 00:00:00 2001 From: EugeneHlushko Date: Tue, 21 Aug 2018 11:04:17 +0300 Subject: [PATCH] docs(config) optimization portableRecords doc --- src/content/configuration/optimization.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/content/configuration/optimization.md b/src/content/configuration/optimization.md index a63fcf7f74fb..76cfe2a306e2 100644 --- a/src/content/configuration/optimization.md +++ b/src/content/configuration/optimization.md @@ -382,3 +382,22 @@ module.exports = { } }; ``` + +## `optimization.portableRecords` + +`bool` + +`optimization.portableRecords` tells webpack to generate records with relative paths to be able to move the context folder. + +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). + +__webpack.config.js__ + +```js +module.exports = { + //... + optimization: { + portableRecords: true + } +}; +``` \ No newline at end of file