Emits a file that contains a unix timestamp of your latest webpack build.
Works with webpack 3.1 and later
npm install --save-dev unix-timestamp-webpack-plugin
// Inside your webpack configuration
var UnixTimestampPlugin = require('unix-timestamp-webpack-plugin');
module.exports = {
plugins: [new UnixTimestampPlugin()]
};
Option | Default |
---|---|
filePath | ./ |
fileName | .build-timestamp |
Example
new UnixTimestampPlugin({
filePath: path.join(__dirname, 'app'),
fileName: 'build-timestamp.txt'
})