vite-plugin-html icon indicating copy to clipboard operation
vite-plugin-html copied to clipboard

Fix/support base reg

Open PengBoUESTC opened this issue 1 year ago • 2 comments

if we add base config in mpa mode, the createRewire will not create a correct regex for url path, because connect-history-api-fallback use pathname to math the middleware regex, which value is base + xx.html

eg:

base: /testbase/

createRewire regex: for other.html is /^\/other.html*/

connect-history-api-fallback pathname for match is /testbase/other.html

PengBoUESTC avatar Sep 11 '24 10:09 PengBoUESTC

for https://github.com/vbenjs/vite-plugin-html/issues/162

PengBoUESTC avatar Sep 11 '24 10:09 PengBoUESTC

@anncwb need review

PengBoUESTC avatar Sep 11 '24 10:09 PengBoUESTC