compute commit hash with git-describe

This commit is contained in:
2023-11-23 11:56:54 -07:00
parent 17444d75de
commit 4c1e229d62
3 changed files with 32 additions and 4 deletions

View File

@@ -1,4 +1,8 @@
const { defineConfig } = require("@vue/cli-service");
const { gitDescribeSync } = require("git-describe");
process.env.VUE_APP_GIT_HASH = gitDescribeSync().hash;
module.exports = defineConfig({
transpileDependencies: true,
configureWebpack: {