pirelenito / git-revision-webpack-plugin

🏗 Webpack plugin that generates VERSION and COMMITHASH files during build
https://www.npmjs.com/package/git-revision-webpack-plugin
MIT License
358 stars 48 forks source link

Add date to version #40

Closed abentele closed 3 years ago

abentele commented 5 years ago

Currently my version looks like 1.1-59-gdcd4eea

I would like to append the last commit date to the version string: 1.1-0-gdcd4eea-2018-12-30

This version should be saved to the VERSION file.

Issue #26 is related, but not the same.

tartinesKiller commented 5 years ago

Maybe you can get the desired format js-side, by appending VERSION and a formatted LASTCOMMITDATETIME with Date or moment.js?