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

Pre-hook fetch to ensure local git is up to date with remote #58

Closed jufemaiz closed 3 years ago

jufemaiz commented 3 years ago

The ability to undertake a fetch as a pre-hook to ensure that the local git is up to date with remote would be useful.

At the moment I need to run this in CI to ensure that, particularly the tags, are up to date.

git fetch --all --tags

npm run build

A pre-hook that could run the fetch would be great.

pirelenito commented 3 years ago

Thanks for the suggestion, but I'm currently not accepting any new features to the package.