richardtallent / vite-plugin-singlefile

Vite plugin for inlining JavaScript and CSS resources
MIT License
855 stars 57 forks source link

can not use it with vue-router #92

Closed zuishuaicc closed 5 months ago

zuishuaicc commented 8 months ago

my project use vue3+vue-router,then install this plugin,after build my project ,i can open the index.html page.but open the router page failed,

hololeo commented 5 months ago

i have this problem too. it seems just loading an index.html page wont work.

richardtallent commented 5 months ago

I've used this with vue-router since I created it, since I'm a Vue developer. But, as mentioned in the README, you must use hash-based routing, not the Web History API. See:

https://router.vuejs.org/guide/essentials/history-mode

zuishuaicc commented 4 months ago

I've used this with vue-router since I created it, since I'm a Vue developer. But, as mentioned in the README, you must use hash-based routing, not the Web History API. See:

https://router.vuejs.org/guide/essentials/history-mode

ok,thanks