refactor(projects): 注入全局常量:PROJECT_BUILD_TIME - 构建时间

This commit is contained in:
Soybean
2021-11-05 22:55:30 +08:00
parent 3b3baf93ee
commit ec907f061c
8 changed files with 22 additions and 11 deletions

8
build/define/index.ts Normal file
View File

@ -0,0 +1,8 @@
import dayjs from 'dayjs';
/** 项目构建时间 */
const PROJECT_BUILD_TIME = JSON.stringify(dayjs().format('YYYY-MM-DD HH:mm:ss'));
export default {
PROJECT_BUILD_TIME
};

View File

@ -1,4 +1,5 @@
import viteEnv from './env';
import plugins from './plugins';
import define from './define';
export { viteEnv, plugins };
export { viteEnv, plugins, define };