ElemeFE / element

A Vue.js 2.0 UI Toolkit for Web
https://element.eleme.io/
MIT License
54.13k stars 14.64k forks source link

[Bug Report] 请在官方文档中提供CDN引入后的element全局名 #18794

Open XSun771 opened 4 years ago

XSun771 commented 4 years ago

Element UI version

2.13.0

OS/Browsers version

无关紧要

Vue version

3.0.0-alpha.4

Reproduction Link

https://codepen.io/pen

Steps to reproduce

https://webpack.js.org/configuration/externals/

What is Expected?

在官方文档的"安装"小节中的"CDN"小节中,告知使用CDN引入element之后,使用什么对应它,从而使得用户可以使用webpack的externals配置将其从webpack编译打包任务中排除。 https://webpack.js.org/configuration/externals/

我已经尝试过'element-ui', 'element', 'elementui' 均失败。

What is actually happening?

文档没有告知。

sxzz commented 4 years ago

Try ELEMENT

mingyangya commented 4 years ago

externals({ 'element-ui': 'ELEMENT' })

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.