Skip to content

Commit 3a8ad44

Browse files
committed
chore: show build time in demo site
1 parent 8785532 commit 3a8ad44

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ ReactDOM.createRoot(document.getElementById('root')!).render(
1515
// print build time in production
1616
if (import.meta.env.PROD) {
1717
// @ts-ignore
18-
console.log('Build Time', __BUILD_TIME__);
18+
console.log('Build Time', new Date(__BUILD_TIME__).toLocaleString());
1919
}

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default defineConfig({
88
plugins: [UnoCSS(), react()],
99
base: "/react-base-virtual-list",
1010
define: {
11-
__BUILD_TIME__: JSON.stringify(new Date().toLocaleString()),
11+
__BUILD_TIME__: JSON.stringify(new Date().toISOString()),
1212
},
1313
build: {
1414
outDir: "dist-demo",

0 commit comments

Comments
 (0)