npm

unplugin-liv-web
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

unplugin-liv-web npm node Download

LivWeb2按需自动导入插件。

特性
  • ✨ 支持自动按需导入组件和指令.
  • 🏝 支持Tree Shaking, 只会自动注册使用过的组件.
  • 🦾 完全支持TypeScript类型安全.

安装

npm i unplugin-liv-web -D

使用

// vite.config.ts
import Components from 'unplugin-vue-components/vite';
import { LivWebResolver } from 'unplugin-liv-web';

export default defineConfig({
  plugins: [
    Components({
      resolvers: [LivWebResolver({ importStyle: 'sass' })],
    }),
  ],
});

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i unplugin-liv-web

    Weekly Downloads

    4

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    7.47 kB

    Total Files

    14

    Last publish

    Collaborators

    • taoyimin