Skip to content

Commit a2308ce

Browse files
authored
fix(docs): fix the wrong filename (#2510)
1 parent a3e30c3 commit a2308ce

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

examples/sites/demos/pc/webdoc/import-components-en.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@ Vite
2222
import autoImportPlugin from '@opentiny/unplugin-tiny-vue'
2323

2424
export default {
25-
plugins: [autoImportPlugin()]
25+
plugins: [autoImportPlugin('vite')]
2626
}
2727
```
2828

2929
Webpack
3030

3131
```js
32-
// webpack.config.js
32+
// vue.config.js
3333

3434
const autoImportPlugin = require('@opentiny/unplugin-tiny-vue')
3535

3636
module.exports = {
37-
plugins: [autoImportPlugin()]
37+
plugins: [autoImportPlugin('webpack')]
3838
}
3939
```
4040

examples/sites/demos/pc/webdoc/import-components.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default {
2929
Webpack
3030

3131
```js
32-
// webpack.config.js
32+
// vue.config.js
3333

3434
const autoImportPlugin = require('@opentiny/unplugin-tiny-vue')
3535

@@ -64,7 +64,7 @@ export default {
6464
Webpack
6565

6666
```js
67-
// webpack.config.js
67+
// vue.config.js
6868

6969
const Components = require('unplugin-vue-components/webpack').default
7070
const TinyVueResolver = require('@opentiny/unplugin-tiny-vue').TinyVueResolver
@@ -158,7 +158,7 @@ export default {
158158
}
159159
```
160160

161-
#### 温馨提示
161+
#### 温馨提示
162162

163163
因为 `pnpm` 工程的特点之一是:项目中显示引入的依赖需要提前在 `package.json` 中声明(防止幽灵依赖),所以在 `pnpm` 工程使用该插件时需要在 `package.json` 中声明项目用到的每一个 `TinyVue` 组件依赖(`TinyVue` 每个组件都是一个 `npm` 包)。依赖声明可以参考以下配置:
164164

0 commit comments

Comments
 (0)