Skip to content

一款针对assets目录规范,自动生成出口shared.ts的工具

License

Notifications You must be signed in to change notification settings

GauharChan/vite-plugin-shared

Repository files navigation

vite-plugin-shared

文档

npm

安装

pnpm i vite-plugin-shared -D

使用

vite.config.ts中引入使用即可

// ...
import { vitePluginShared } from 'vite-plugin-shared';
export default defineConfig(({ mode }) => ({
  base: '',
  plugins: [
    vue(),
    Components({
      resolvers: [VantResolver()],
    }),
    vitePluginShared(),
  ],
  // ...
}));

About

一款针对assets目录规范,自动生成出口shared.ts的工具

Resources

License

Stars

Watchers

Forks

Packages

No packages published