You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailchat/web/build/utils.ts

12 lines
279 B
TypeScript

import childProcess from 'child_process';
/**
* workbox 匹配plugin的缓存
*/
export const workboxPluginPattern =
/plugins\/com\.msgbyte(.*?)\/((?!index).)*?\.js/;
export function getCommitHash(): string {
return String(childProcess.execSync('git rev-parse HEAD'));
}