mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +08:00
add build time in about page
This commit is contained in:
@@ -51,6 +51,7 @@ module.exports = {
|
||||
const gitRevisionPlugin = new GitRevisionPlugin();
|
||||
definitions[0]['process.env']['VERSION'] = JSON.stringify(pkgFile.version);
|
||||
definitions[0]['process.env']['COMMIT_HASH'] = JSON.stringify(gitRevisionPlugin.commithash());
|
||||
definitions[0]['process.env']['BUILD_UNIXTIME'] = JSON.stringify(parseInt((new Date().getTime() / 1000).toString()));
|
||||
|
||||
return definitions;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user