Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs): fix the wrong filename #2510

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/sites/demos/pc/webdoc/import-components-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ Vite
import autoImportPlugin from '@opentiny/unplugin-tiny-vue'

export default {
plugins: [autoImportPlugin()]
plugins: [autoImportPlugin('vite')]
}
```

Webpack

```js
// webpack.config.js
// vue.config.js

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

module.exports = {
plugins: [autoImportPlugin()]
plugins: [autoImportPlugin('webpack')]
}
```

Expand Down
6 changes: 3 additions & 3 deletions examples/sites/demos/pc/webdoc/import-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default {
Webpack

```js
// webpack.config.js
// vue.config.js

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

Expand Down Expand Up @@ -64,7 +64,7 @@ export default {
Webpack

```js
// webpack.config.js
// vue.config.js

const Components = require('unplugin-vue-components/webpack').default
const TinyVueResolver = require('@opentiny/unplugin-tiny-vue').TinyVueResolver
Expand Down Expand Up @@ -158,7 +158,7 @@ export default {
}
```

#### 温馨提示
#### 温馨提示

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

Expand Down
Loading