Skip to content

Commit

Permalink
fix: fix git no tag build err (#391)
Browse files Browse the repository at this point in the history
Signed-off-by: moweiwei <[email protected]>
  • Loading branch information
moweiwei authored Mar 14, 2023
1 parent 3a17dbb commit 4215c32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/webpack.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const CompressionWebpackPlugin = require('compression-webpack-plugin');
const GitRevisionPlugin = require('git-revision-webpack-plugin');

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

const root = (path) => resolve(__dirname, `../${path}`);
Expand Down
2 changes: 1 addition & 1 deletion config/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const CompressionWebpackPlugin = require('compression-webpack-plugin');
const GitRevisionPlugin = require('git-revision-webpack-plugin');

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

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

0 comments on commit 4215c32

Please sign in to comment.