Skip to content

dschu-lab/unix-timestamp-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Emits a file that contains a unix timestamp of your latest webpack build

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published