Releases: windsonR/vite-plugin-virtual-html
Releases · windsonR/vite-plugin-virtual-html
1.1.12
1.1.11
1.1.10
1.1.9
Add a new option to plugin
urlTransformer
This is a function which allow developer fully control plugin's url generate function.
This means:
- Maybe you can access
http://localhost:5173/demo.html
, but through this function, it can change to/demo2.html
or others. - Maybe when you have context, this function also can help you to remove (or add) the context.
1.1.8
1.1.6
Add support to index.html
under sub-folders.
And the pages
config, now support such config like this:
{
'demo1/index': '/demo/demoIndex1.html',
'demo2/': '/demo/demoIndex2.html',
}
These two config is fully equal.
And when you access demo1/index.html
in browser. You can use this two way./demo1/
and /demo1/index.html
. These two url means /demo1/index.html
will be show in browser.
But , if you use /demo1
,this will cause 404 or other errors.