From 88bf739e865b431c5739c777ce7f66f1e8445f74 Mon Sep 17 00:00:00 2001 From: Meqn Date: Thu, 23 Jan 2025 02:37:20 +0000 Subject: [PATCH] release: Version Packages --- packages/page-html/CHANGELOG.md | 6 ++++++ packages/page-html/package.json | 2 +- packages/vanilla/CHANGELOG.md | 6 ++++++ packages/vanilla/README.md | 22 +++++++++++----------- packages/vanilla/package.json | 2 +- 5 files changed, 25 insertions(+), 13 deletions(-) diff --git a/packages/page-html/CHANGELOG.md b/packages/page-html/CHANGELOG.md index 6438438..9288381 100644 --- a/packages/page-html/CHANGELOG.md +++ b/packages/page-html/CHANGELOG.md @@ -1,5 +1,11 @@ # vite-plugin-page-html +## 3.1.5 + +### Patch Changes 🌟 + +- fix: Merge inject.data & inject.tags (#8) + ## 3.1.4 ### Patch Changes 🌟 diff --git a/packages/page-html/package.json b/packages/page-html/package.json index bd05aef..26ce800 100644 --- a/packages/page-html/package.json +++ b/packages/page-html/package.json @@ -1,6 +1,6 @@ { "name": "vite-plugin-page-html", - "version": "3.1.4", + "version": "3.1.5", "description": "A simple and flexible Vite plugin for processing HTML pages, integrating multi-page application (MPA) configuration, EJS template support, and HTML compression.", "type": "module", "main": "./dist/index.js", diff --git a/packages/vanilla/CHANGELOG.md b/packages/vanilla/CHANGELOG.md index 62222f9..225fdcf 100644 --- a/packages/vanilla/CHANGELOG.md +++ b/packages/vanilla/CHANGELOG.md @@ -1,5 +1,11 @@ # vite-plugin-vanilla +## 2.1.1 + +### Minor Changes 🌟 + +- docs: Update README (#7) + ## 2.1.0 ### Minor Changes 🌟 diff --git a/packages/vanilla/README.md b/packages/vanilla/README.md index ff41004..0a85a27 100644 --- a/packages/vanilla/README.md +++ b/packages/vanilla/README.md @@ -34,21 +34,21 @@ export default defineConfig({ ## API ```js -vanilla(options: string | string[] | object) +vanilla(options: string | string[] | IOptions) ``` ### options -| Name | Type | Default | Description | -| --------------- | ---------------------------- | ------- | ------------------------------------- | -| `include` | `string \| string[]` | | The pattern of pages. | -| `exclude` | `string[]` | `[]` | The pattern of pages to exclude. | -| `base` | `string` | `'src'` | The base directory of pages. | -| `suffix` | `string \| string[]` | `html` | The suffix of page file. | -| `minify` | `boolean` | `true` | Whether to minify the HTML. | -| `transform` | `Transform` | | Transform the HTML. | -| `inject` | `{tags:HtmlTagDescriptor[]}` | | Inject the HTML Tags. | -| `replaceDefine` | `boolean` | `true` | Static replace `vite.define` in HTML. | +| Name | Type | Default | Description | +| --------------- | ---------------------------- | --------------- | ------------------------------------- | +| `include` | `string \| string[]` | `src/**/*.html` | The pattern of pages. | +| `exclude` | `string[]` | `[]` | The pattern of pages to exclude. | +| `base` | `string` | `'src'` | The base directory of pages. | +| `suffix` | `string \| string[]` | `'html'` | The suffix of page file. | +| `minify` | `boolean` | `true` | Whether to minify the HTML. | +| `transform` | `Transform` | | Transform the HTML. | +| `inject` | `{tags:HtmlTagDescriptor[]}` | | Inject the HTML Tags. | +| `replaceDefine` | `boolean` | `true` | Static replace `vite.define` in HTML. | **options.transform** diff --git a/packages/vanilla/package.json b/packages/vanilla/package.json index 95559cd..5c63ca0 100644 --- a/packages/vanilla/package.json +++ b/packages/vanilla/package.json @@ -1,6 +1,6 @@ { "name": "vite-plugin-vanilla", - "version": "2.1.0", + "version": "2.1.1", "description": "Vanilla multi-page web development mode based on Vite.", "type": "module", "main": "./dist/index.js",