GithubHelp home page GithubHelp logo

vue3-web-component-demo's Introduction

Web Components demo project Vue3 + Vite + TypeScript + vaadin components

这是一个Vue3+Vite+Typescript项目,将整个项目打包成一个web component组件 最终输出一个 my-app的自定义标签,使用route属性 呈现不同的页面内容,为了开发方便,引入了名为vaadin的第三方的web components库

If your requirement is to package the entire Vue project into a single web component, and for convenience, you also want to use some pre-packaged web component libraries to assist your development, then you can refer to this demo.

Third-party component library

If you need to preview and develop locally, you can try the following steps: first, run npm install, then run npm run dev.

If you need to build it into a web component, first execute npm run build, then you can import the built JS file into any index.html file. After that, you can preview it by using a custom tag <my-app route="home-page-com" />.

vue3-web-component-demo's People

Contributors

mccree-huang avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.