Open zonetw opened 3 years ago
Looking at the code the plugin exports the GITVERSION constant to the code space.
So console.log(GITVERSION);
prints the git info correctly.
What I still did, is to put the plugin to the 'pre' order:
plugins: [
{
...GitRevision({branch: true}),
enforce: 'pre'
},
vue(),
],
On the other hand, using branch: true
option doesn't seem to have any effect.
The project still needs to be improved, I will improve the function later
I will develop this function , then update the readme file
The example only demo a simple HelloWorld app with nothing to do with showing git version. Neither run
npm run dev
nornpm run build