How to package components with vue webpack-simple in order to use them directly

I want to make a vue component by myself, but if I want to mention it separately, I can put it in other projects. Other projects use cdn, so I want to make a plug-in like JQ, as long as I reference vue.js and my compiled components.
it"s a pity that I can"t find the variable when I package it with webpack-simple according to the official website

.

clipboard.png

webpack.confing.js

</script>
<script>
    Vue.use(uiCascader)
    $vm = new Vue({
    el: "-sharpapp"

    })

html says uiCascader is not defined

Mar.02,2021

answer yourself:

change the entry file


import uiCaseader from "./uiCaseader.vue"
import uiSelect from "./uiSelect.vue"
import uiOption from "./uiOption.vue"
import uiItemtext from "./uiItemtext.vue"

const components = [
    uiCaseader,
    uiSelect,
    uiOption, 
    uiItemtext, 

  ];

const install = function(Vue) {
    if (install.installed) return;
    components.map(component => Vue.component(component.name, component));
  };


if (typeof window !== 'undefined' && window.Vue) {
    install(window.Vue);
}

export default {
    install 
}

component must have name

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e915a4-134b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e915a4-134b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?