Skip to content

Releases: windsonR/vite-plugin-virtual-html

1.1.12

11 Jul 07:29
Compare
Choose a tag to compare

Fix issue when build template,the Vite config may not transfer into buildConfig

1.1.11

06 Jul 02:28
Compare
Choose a tag to compare

When check html file's parent directory, now it will use config.root.
fix: #29

1.1.10

21 Jun 02:42
Compare
Choose a tag to compare
1.1.10

1.1.9

19 May 07:33
Compare
Choose a tag to compare

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

12 May 01:57
800e814
Compare
Choose a tag to compare

Fix the wrong order when inject-code.
Add a test to inject-code.

1.1.6

18 Apr 05:23
Compare
Choose a tag to compare

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.htmlwill be show in browser.

But , if you use /demo1,this will cause 404 or other errors.

1.1.5

17 Apr 01:38
Compare
Choose a tag to compare

Use createFilter to filter html file in plugin's load and transform hook.
Change configureServer hook to support such html like subfolder/index.html. This fix [#27].

1.0.1

16 Jan 08:26
6184aee
Compare
Choose a tag to compare

Same as 1.0.0, only remove a console.log from plugin.ts

1.0.0

13 Jan 15:38
bec4031
Compare
Choose a tag to compare
Update npm-publish-github-packages.yml