【文件属性】:
文件名称:vue-web-components
文件大小:187KB
文件格式:ZIP
更新时间:2021-02-06 08:41:25
vue web-components vue-cli vue-web-component-wrapper WebComponents
vue-web-components
此仓库存储由“ vue-web-component-wrapper”产生的捆绑包
包含什么?
VUE动态星级(star-rating)
如何将其他Web组件添加到捆绑包中?
导入或创建新的vue组件。
运行npm run build COMPONENT_NAME ./COMPONENT_PATH.vue 。 它将创建bundle/COMPONENT_NAME.js
提交此文件。
例如,如果要将某些外部Vue组件转换为Web组件并将其添加到此捆绑包中,则可以运行以下命令:
npm i library_name --save
npm run b
【文件预览】:
vue-web-components-master
----vue.config.js(98B)
----package.json(901B)
----build.js(992B)
----package-lock.json(447KB)
----.gitignore(213B)
----README.md(881B)
----babel.config.js(72B)
----bundle()
--------star-rating.js(60KB)
--------star-rating.min.js(20KB)
--------star-rating.js.map(73KB)
--------star-rating.min.js.map(88KB)