rb-vite-plugins

2.0.11 • Public • Published

vite插件

安装

npm install -D rb-vite-plugins

使用

vite.config.js

const { genMenu, timer, copyDist } = require('rb-vite-plugins') 
export default defineConfig({
  plugins: [
    vue(),
    genMenu({ getRoutes, getModules }),
    copyDist({
      destPath:
        "./app/pentagon-vite",
    }),
    timer(),
  ]
})

timer

计算构建时间

copyDist

将构建结果复制到指定位置,destPath为路径

genMenu

Dependents (0)

Package Sidebar

Install

npm i rb-vite-plugins

Weekly Downloads

0

Version

2.0.11

License

ISC

Unpacked Size

7.23 kB

Total Files

12

Last publish

Collaborators

  • robin2018