Write JSON Webpack Plugin
Emits a JSON file that contains data passed through to it
Install
npm install --save-dev write-json-webpack-plugin
Configuration
// Add to your Webpack config filevar WriteJsonPlugin = ; moduleexports = plugins: ;
Options
Write JSON Webpack Plugin accepts three options, the object to write, the path and filename
object: object path: 'public' // default output is timestamp.json filename: 'timestamp.json' pretty: true // makes file human-readable (default false)