Skip to content

Commit 80bce9a

Browse files
committed
feat: console.log app version
1 parent 750bf47 commit 80bce9a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/pages/_app.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import '@/styles/globals.scss';
22
import 'antd/dist/antd.css';
3+
import {version} from '../../package.json';
34

45
export default function MyApp({ Component, pageProps }) {
6+
console.log(
7+
`%cApp current version: v${version}`,
8+
'font-family: Cabin, Helvetica, Arial, sans-serif;text-align: left;font-size:32px;color:#B21212;'
9+
);
10+
511
return <Component {...pageProps} />
612
}

0 commit comments

Comments
 (0)