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

Menu