Version Generator Webpack Plugin
A plugin that generates a json file with the current timestamp and more.
Install
npm install --save-dev version-file-generator-webpack-plugin
Configuration
// Add to your Webpack config filevar VersionFileGeneratorWebpackPlugin = ; plugins: outputFile: path locale: 'en-US'
// will output this:
{"date":"4/13/2018 15:03:48"}
Custom output
var VersionFileGeneratorWebpackPlugin = ; plugins: outputFile: path locale: 'pt-BR' content: JSON
// will output the result of:JSON
API
var VersionFileGeneratorWebpackPlugin = ; outputFile: '/path/to/your/file.json' locale: /* locale, defaults to 'en-US' */ content: {}