mirror of https://github.com/msgbyte/tailchat
chore: 修改打包时version生成逻辑
parent
5caaa978f0
commit
2dcd4d0976
@ -1,5 +1,11 @@
|
|||||||
|
import childProcess from 'child_process';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* workbox 匹配plugin的缓存
|
* workbox 匹配plugin的缓存
|
||||||
*/
|
*/
|
||||||
export const workboxPluginPattern =
|
export const workboxPluginPattern =
|
||||||
/plugins\/com\.msgbyte(.*?)\/((?!index).)*?\.js/;
|
/plugins\/com\.msgbyte(.*?)\/((?!index).)*?\.js/;
|
||||||
|
|
||||||
|
export function getCommitHash(): string {
|
||||||
|
return String(childProcess.execSync('git rev-parse HEAD'));
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue