vite-plugin-mpa:MPA(多页应用程序)

时间:2021-04-08 15:38:30
【文件属性】:
文件名称:vite-plugin-mpa:MPA(多页应用程序)
文件大小:50KB
文件格式:ZIP
更新时间:2021-04-08 15:38:30
vite vite-plugin TypeScript Vite-plugin-mpa 开箱即用的多页面应用程序,用于Vite,支持Vue2 / 3,React等 动机 访问本机支持多页,但必须配置rollupOptions.input 在访问开发人员时,必须为$projectRoot/src/pages/index/xxx.html打开localhost:3000/src/pages/index/xxx.html $projectRoot/src/pages/index/xxx.html vue-cli帮助重写MPA的URL,此插件执行相同的操作并自动为您打开第一页 实验:构建时,为您整理文件夹(如vue-cli), dist/src/pages/subpage/index.html将移至dist/subpage/index.html 用法 yarn add vite-plugin-mpa // vite.config.ts impo
【文件预览】:
vite-plugin-mpa-main
----.github()
--------workflows()
----src()
--------index.ts(2KB)
--------lib()
----.cz-configrc.js(1KB)
----.commitlintrc.js(397B)
----.npmignore(33B)
----examples()
--------svelte-mpa-app()
--------react-mpa-app()
--------vue3-mpa-app()
----tsconfig.json(472B)
----README.md(3KB)
----.gitignore(206B)
----package.json(2KB)

网友评论