Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1014 Bytes

README.md

File metadata and controls

43 lines (29 loc) · 1014 Bytes

unix-timestamp-webpack-plugin

npm version Build Status

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'
})