emosheeep / vite-plugin-virtual-mpa

Out-of-box MPA plugin for Vite, generate multiple entries using only one template.
https://stackblitz.com/~/github.com/emosheeep/vite-plugin-virtual-mpa
MIT License
120 stars 15 forks source link

feat(plugin): the unmatched entry uses the default hook #16

Closed jiadesen closed 1 year ago

jiadesen commented 1 year ago

15

jiadesen commented 1 year ago

未匹配到的入口还是交由 next() 处理比较好。比如,我在项目根目录放置一个项目说明文件 info.html,我期望直接使用 vite 服务来访问,而不要额外的配置,况且,这还是不参与构建的说明文件

emosheeep commented 1 year ago

好像是应该这样,当时我是不太清楚没匹配到要怎么处理,原来是这样

emosheeep commented 1 year ago

这种场景要不在example里面也体现一下吧

jiadesen commented 1 year ago

晚点吧,还是有点问题

jiadesen commented 1 year ago

改好了,有时间看看...

emosheeep commented 1 year ago

看这整的还挺高级,我验证下看看

image