Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
hemengke1997 committed Nov 3, 2023
1 parent bb29618 commit 3f5f82e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# vite-plugin-public-typescript


**在vite的运行时或构建时编译指定目录下的typescript文件,供开发者独立使用**
**编译指定目录下的typescript文件,注入到浏览器中使用**

## 在线示例
[Demo](https://hemengke1997.github.io/vite-plugin-public-typescript/)
Expand All @@ -33,7 +33,7 @@
## 应用场景

- 独立的第三方脚本,如 `sentry``google analytics``百度统计`
- 希望在页面完全加载前就执行的脚本,如 `modern-flexible`
- 希望在页面完全加载前就执行的脚本,如 [`modern-flexible`](https://github.com/hemengke1997/modern-flexible)[`lib-flexible`](https://github.com/amfe/lib-flexible)
- 初始化全局函数

## 功能
Expand All @@ -46,7 +46,6 @@
- 支持不同的输出方式(内存模式和文件模式)
- 支持 CSR 和 SSR 应用


## 安装

```bash
Expand All @@ -67,7 +66,8 @@ pnpm add vite-plugin-public-typescript -D
| destination | `string` | `memory` | 输出模式:内存模式 \| 文件模式 |
| cacheDir | `string` | `node_modules/.vite-plugin-public-typescript` | 存放manifest缓存的目录 |
| base | `string` | vite config 中的 `base` | 资源 base url |
| babel | `boolean | ESBuildPluginBabelOptions` | false | babel编译(如果需要兼容es6以下浏览器,请开启) |
| publicDir | `string` | vite config 中的 `publicDir` | public目录 |
| babel | `boolean | ESBuildPluginBabelOptions` | `false` | babel编译(如果需要兼容es6以下浏览器,请开启) |



Expand Down

0 comments on commit 3f5f82e

Please sign in to comment.