We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.4.12
mac: 10.15.2、 chrome: 80.0.3987.132、Vue:2.6.11
#26
当我想通过cdn的方式加载 ant 的时候,我使用了 <script src="https://unpkg.com/ant-design-vue@1.4.12/dist/antd.min.js"></script> 在public>index.html.
<script src="https://unpkg.com/ant-design-vue@1.4.12/dist/antd.min.js"></script>
public>index.html
vue.confif.js
module.exports = { // ... configureWebpack: { // ... externals: { vue: 'Vue', 'ant-design-vue': 'Ant', 'vue-router': 'VueRouter', }, } }
main.js
ant-design-vue
import Vue from 'vue'; import Ant from 'ant-design-vue'; console.log(Ant) // undefined
希望得到一个cdn引入的较好方案
cdn引入失败
The text was updated successfully, but these errors were encountered:
vueComponent/ant-design-vue-pro@ae60814
Sorry, something went wrong.
vue 也要通过cdn方式加载,然后组件会自动注册
感谢
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
Version
1.4.12
Environment
mac: 10.15.2、 chrome: 80.0.3987.132、Vue:2.6.11
Reproduction link
#26
Steps to reproduce
在
vue.confif.js
下配置如下在
main.js
引入ant-design-vue
What is expected?
希望得到一个cdn引入的较好方案
What is actually happening?
cdn引入失败
The text was updated successfully, but these errors were encountered: