Records Path

The Records Path option is expressed as a string. This option should be used to generate a JSON file containing records. These are pieces of data used to store module identifiers across numerous builds. This can be used to track how modules alter between builds. To generate one, simply specify a location, as in the following example, using the webpack.config.js file:

module.exports = {
  recordsPath: path.join(__dirname, 'records.json')
};

Records are useful if you have a complex project that uses code splitting. This recorded data can be utilized to ensure that caching is behaving correctly when working with split bundles.

Even though the compiler generates this file, the source control should be used to track it and keep a history of its usage over time.

Setting recordsPath will also set recordsInputPath and recordsOutputPath to the same location. 

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.219.63.90