unibest/src/pages/index/components/pages-auto-import.vue
2024-01-08 21:24:39 +08:00

18 lines
415 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<view>
<view>测试是否会自动引入到pages发现会除非增加exclude配置</view>
<view>需要在vite.config.ts注意不是pages.config.ts中UniPages()配置exclude</view>
<view>配置如下: </view>
<pre>
export default defineConfig({
plugins: [
UniPages({
exclude: ['**/components/**/**.*'],
}),
uni(),
],
})
</pre>
</view>
</template>