0.0.5 • Published 1 year ago

@bzlab/bz-vite-mpa v0.0.5

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

bz-vite-mpa

vite多页应用插件

快速上手

npm i @bzlab/bz-vite-mpa -D

// vite.config.ts
import mpa from '@bzlab/bz-vite-mpa'
export default defineConfig({
  plugins: [
    // ...other plugins
    mpa(/* options */),
  ]
})

文档

props 配置项

序号参数说明默认值
1open是否打开浏览器false
2openFirstPage首次打开页面/
3scanPub扫描入口文件目录public
4scanDir扫描文件目录src/views
5scanFile扫描文件格式main.{js,ts,jsx,tsx}
6filename默认入口文件名index.html
7defaultEntries默认入口文件路径-
8defaultPage默认页面center
9rewrites重写规则[]

发布包

npm publish --registry https://registry.npmjs.org --access public    

卸载包

npm unpublish @bzlab/bz-vite-mpa --force --registry https://registry.npmjs.org
0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago