Coder Social home page Coder Social logo

vue3plugin / npm-pkg-by-vite Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 593 KB

基于rollup的npm包基础模板

Home Page: https://vue3plugin.github.io/npm-pkg-by-vite/

License: MIT License

TypeScript 80.37% JavaScript 12.52% Vue 5.57% CSS 1.54%
npm-package vitepress vue3

npm-pkg-by-vite's Introduction

  • 👋 Hi, 一个码农
  • 👀 I’m 造一些关于vue3项目的轮子
  • 🌱 I’m currently learning ...
  • 💞️ I’m looking to collaborate on ...
  • 📫 How to reach me ...

主要是懒惰,有一些代码来回来来的写都是一样的代码,主力前端框架是vue3,将一些个人常用的东西封装出来,有用没用自己掂量,这里只做记录。

npm-pkg-by-vite's People

Contributors

biancangming avatar vue3plugin avatar

Watchers

 avatar

npm-pkg-by-vite's Issues

文件类型合并

tsc -b ./tsconfig.types.json 这样生成的文件类型杂乱,需要汇总比较合适

defineModel is not defined

这个错误是由vue3引起,需要在模板当中默认配置比较好,目前使用率比较高

需要安装@vitejs/plugin-vue 这个依赖

  1. vite 配置
plugins: [
        vue({
            script: {
                defineModel: true
            }
        }),
    ]
  1. .vitepress/config.ts配置
export default defineConfig({
  vue: {
    script: {
      defineModel: true
    }
  }
})

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.