Skip to content

Commit

Permalink
fix: rewrite default git version command (#186)
Browse files Browse the repository at this point in the history
Signed-off-by: x893675 <[email protected]>

Signed-off-by: x893675 <[email protected]>
Co-authored-by: x893675 <[email protected]>
  • Loading branch information
kubeclipper-bot and x893675 authored Sep 30, 2022
1 parent 013b75d commit 70411b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ const TerserPlugin = require('terser-webpack-plugin');
const CompressionWebpackPlugin = require('compression-webpack-plugin');
const GitRevisionPlugin = require('git-revision-webpack-plugin');

const gitRevision = new GitRevisionPlugin();
const gitRevision = new GitRevisionPlugin({
versionCommand: "describe --tags --dirty --match='v*' --abbrev=14",
});

const root = (path) => resolve(__dirname, `../${path}`);
const version = common.version;
Expand Down

0 comments on commit 70411b5

Please sign in to comment.