-
-
Notifications
You must be signed in to change notification settings - Fork 379
Closed
Description
我按照 README.md 中的配置依次配置后,在开发模式下是正常可以按需加载的,
按照vite的配置使用了CDN
CDN 配置
// html
<script src="https://cdn.jsdelivr.net/npm/vue@3.2.16/dist/vue.global.prod.js"></script>
// vite
rollupOptions: {
// indicate which modules should be treated as external,
external: ['vue'],
plugins: [
externalGlobals({
vue: 'Vue'
})
]
}
在打包编译后发现,vue按需加载的组件是未被打包的 demo 我放在了 github
请问一下,这两者是有冲突的地方还是,不能按照我的这种想法去实现呢,请指教,不胜感激
iamxiyang and jsLWQ
Metadata
Metadata
Assignees
Labels
No labels