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