From 8a7733c068b54e003c11a62b5e1eaccdf7491069 Mon Sep 17 00:00:00 2001 From: baozouai Date: Sun, 2 Jul 2023 20:56:28 +0800 Subject: [PATCH] docs: readme --- README-zh_CN.md | 2 +- README.md | 2 +- playgrounds/react/vite.config.ts | 3 ++- playgrounds/vue/tsconfig.json | 8 ++------ 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/README-zh_CN.md b/README-zh_CN.md index 03ea995..79ea165 100644 --- a/README-zh_CN.md +++ b/README-zh_CN.md @@ -75,7 +75,7 @@ import EnhanceLog from 'vite-plugin-enhance-log' const config = defineConfig({ plugins: [ - + // 如果用vue, 请确保 vuePlugin 在 log plugin 之前 EnhanceLog({ splitBy: '\n', preTip: '🐖🐖🐖🐖🐖🐖🐖🐖🐖🐖', diff --git a/README.md b/README.md index aa4a860..f27362e 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ import EnhanceLog from 'vite-plugin-enhance-log' const config = defineConfig({ plugins: [ - + // if you use vue, ensure the vuePlugin before the log plugin EnhanceLog({ splitBy: '\n', preTip: '🐖🐖🐖🐖🐖🐖🐖🐖🐖🐖', diff --git a/playgrounds/react/vite.config.ts b/playgrounds/react/vite.config.ts index b6c0a83..23fa02b 100644 --- a/playgrounds/react/vite.config.ts +++ b/playgrounds/react/vite.config.ts @@ -1,7 +1,7 @@ import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import Inspect from 'vite-plugin-inspect' -import EnhanceLog from 'vite-plugin-enhance-log' +import EnhanceLog from '../../src' // https://vitejs.dev/config/ export default defineConfig({ @@ -14,6 +14,7 @@ export default defineConfig({ enableDir: false, }, }), + Inspect(), ], }) diff --git a/playgrounds/vue/tsconfig.json b/playgrounds/vue/tsconfig.json index 99c82c3..af4fc4f 100644 --- a/playgrounds/vue/tsconfig.json +++ b/playgrounds/vue/tsconfig.json @@ -14,12 +14,8 @@ "strictNullChecks": true, "forceConsistentCasingInFileNames": true, "types": [ - "vite/client", - "vite-plugin-enhance-log" - ], - "paths": { - "~/*": ["src/*"] - } + "vite/client" + ] }, "exclude": ["dist", "node_modules"] }