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

View File

@@ -1,6 +1,6 @@
import { defineConfig } from 'vite';
import path from 'path';
import { viteEnv, plugins } from './build';
import { viteEnv, plugins, define } from './build';
export default defineConfig({
base: viteEnv.VITE_BASE_URL,
@@ -9,6 +9,7 @@ export default defineConfig({
'@': path.resolve(__dirname, './src')
}
},
define,
css: {
preprocessorOptions: {
scss: {