File tree 2 files changed +6
-6
lines changed
examples/sites/demos/pc/webdoc
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 22
22
import autoImportPlugin from ' @opentiny/unplugin-tiny-vue'
23
23
24
24
export default {
25
- plugins: [autoImportPlugin ()]
25
+ plugins: [autoImportPlugin (' vite ' )]
26
26
}
27
27
```
28
28
29
29
Webpack
30
30
31
31
``` js
32
- // webpack .config.js
32
+ // vue .config.js
33
33
34
34
const autoImportPlugin = require (' @opentiny/unplugin-tiny-vue' )
35
35
36
36
module .exports = {
37
- plugins: [autoImportPlugin ()]
37
+ plugins: [autoImportPlugin (' webpack ' )]
38
38
}
39
39
```
40
40
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export default {
29
29
Webpack
30
30
31
31
``` js
32
- // webpack .config.js
32
+ // vue .config.js
33
33
34
34
const autoImportPlugin = require (' @opentiny/unplugin-tiny-vue' )
35
35
@@ -64,7 +64,7 @@ export default {
64
64
Webpack
65
65
66
66
``` js
67
- // webpack .config.js
67
+ // vue .config.js
68
68
69
69
const Components = require (' unplugin-vue-components/webpack' ).default
70
70
const TinyVueResolver = require (' @opentiny/unplugin-tiny-vue' ).TinyVueResolver
@@ -158,7 +158,7 @@ export default {
158
158
}
159
159
```
160
160
161
- #### 温馨提示:
161
+ #### 温馨提示
162
162
163
163
因为 ` pnpm ` 工程的特点之一是:项目中显示引入的依赖需要提前在 ` package.json ` 中声明(防止幽灵依赖),所以在 ` pnpm ` 工程使用该插件时需要在 ` package.json ` 中声明项目用到的每一个 ` TinyVue ` 组件依赖(` TinyVue ` 每个组件都是一个 ` npm ` 包)。依赖声明可以参考以下配置:
164
164
You can’t perform that action at this time.
0 commit comments