From abbfda757b00b79080a3be41552311db550a16b9 Mon Sep 17 00:00:00 2001 From: baozouai Date: Sat, 29 Jul 2023 15:54:37 +0800 Subject: [PATCH] docs: readme --- README-zh_CN.md | 6 +++++- README.md | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README-zh_CN.md b/README-zh_CN.md index 6ff8a7b..c9e7ed2 100644 --- a/README-zh_CN.md +++ b/README-zh_CN.md @@ -114,6 +114,10 @@ play play:astro # 对应astro 具体配置可以看 [vue/vite.config.ts](./playgrounds/vue/vite.config.ts) 或者 [react/vite.config.ts](./playgrounds/react/vite.config.ts)、[astro.config.mjs](./playgrounds/astro/astro.config.mjs) + +> 📢 注意,从0.5.0开始,如果打印文件名的话,会将log所在行放到文件名后面,类似这样: +> ![img](./assets/file_end_line.png) + 比如说,你不喜欢小 🚀,你喜欢猪猪 🐖,那可以配置 preTip 为 🐖🐖🐖🐖🐖🐖🐖🐖🐖🐖: ![img](./assets/pig_pretip.png) @@ -132,7 +136,7 @@ play play:astro # 对应astro 比如说,你希望知道log所在的文件名,那么可以配置enableFileName为true(当然默认就是true): -![img](./assets/filename.png) +![img](./assets/file_end_line.png) 如果文件路径太长: ![img](./assets/deep_file.png) diff --git a/README.md b/README.md index 0076b9f..5456699 100644 --- a/README.md +++ b/README.md @@ -117,6 +117,10 @@ pnpm play:astro # corresponds to astro For specific configuration, see [vue/vite.config.ts](./playgrounds/vue/vite.config.ts) or [react/vite.config.ts](./playgrounds/react/vite.config.ts), [astro.config.mjs](./playgrounds/astro/astro.config.mjs) + +> 📢 Note that since 0.5.0, if you print the filename, it puts the line where the log is after the filename, something like this: +> ![img](./assets/file_end_line.png) + For example, if you don't like small 🚀, but you like piggy 🐖, you can configure preTip as 🐖🐖🐖🐖🐖🐖🐖🐖🐖🐖: ![img](./assets/pig_pretip.png) @@ -135,7 +139,7 @@ Of course, you can also specify it at will, such as using a dog head 🐶 to sep For example, if you want to know the file name where the log is located, you can configure enableFileName to be true (of course the default is true): -![img](./assets/filename.png) +![img](./assets/file_end_line.png) If the file path is too long: ![img](./assets/deep_file.png)