0.2.0 • Published 7 months ago

@uni-helper/vite-plugin-uni-components v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@uni-helper/vite-plugin-uni-components

Forked from unplugin-vue-components and modified to adapt UniApp.

NPM version

Install

pnpm i -D @uni-helper/vite-plugin-uni-components

Usage

// vite.config.ts
import { defineConfig } from 'vite'
import Uni from '@dcloudio/vite-plugin-uni'
import Components from '@uni-helper/vite-plugin-uni-components'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    // make sure put it before `Uni()`
    Components(),
    Uni(),
  ],
})

Component type prompt

If you use pnpm, please create a .npmrc file in root, see issue.

// .npmrc
public-hoist-pattern[]=@vue*
// or 
// shamefully-hoist = true

see more in unplugin-vue-components

License

MIT License © 2023-PRESENT Neil Lee

0.2.0

7 months ago

0.1.0

10 months ago

0.0.10

10 months ago

0.0.9

1 year ago

0.0.8

2 years ago

0.0.5

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.3

2 years ago