vite-plugin-virtual-mpa
Version:
Out-of-box MPA plugin for Vite, with html template engine and virtual files support.
132 lines (74 loc) • 4.28 kB
Markdown
# vite-plugin-virtual-mpa
## 1.12.1
### Patch Changes
- 0dd3b4b: feat: Allow EJS extension for template files.
- chore: upgrade ecosystem dependencies.
## 1.12.0
### Minor Changes
- 59cfcce: fix: Prevent the Vite dev server from crashing when rendering EJS templates fails
- chore: upgrade dependencies.
## 1.11.0
### Minor Changes
- feat: Support configuring response headers for development environment server
## 1.10.1
### Patch Changes
- fix: The CJS build of Vite's Node API is deprecated warning
## 1.10.0
### Minor Changes
- feat: add transformHtml hook, merged [#56](https://github.com/emosheeep/vite-plugin-virtual-mpa/pull/56)
# 1.9.3
fix: Built-in matching rules preferentially match longer paths. Closed [#52](https://github.com/emosheeep/vite-plugin-virtual-mpa/issues/52).
chore: Upgrade all of workspace dependencies.
# 1.9.2
fix: Support `root` option at development, closed [#50](https://github.com/emosheeep/vite-plugin-virtual-mpa/issues/50).
# 1.9.1
fix: On windows, when base is set to "" or "./", the output resource path is incorrect. Fixed [#43](https://github.com/emosheeep/vite-plugin-virtual-mpa/issues/43).
# 1.9.0
feat: Support disable default rewrite rules by passing `false`. Closed [#44](https://github.com/emosheeep/vite-plugin-virtual-mpa/issues/44).
# 1.8.3
- fix: Add cross-platform path parsing support. Closed [#41](https://github.com/emosheeep/vite-plugin-virtual-mpa/issues/41).
- chore: Update dependencies.
# 1.8.2
- feat: Support `scanOptions.template` option.
- chore: Update dependencies' version.
# 1.8.1
- fix: `ERR_TOO_MANY_REDIRECTS` when set `base` option and visit base. Closed [#33](https://github.com/emosheeep/vite-plugin-virtual-mpa/issues/33).
- feat: Support `/dir/` without explicit `index.html` refer to the implementation of vite.
- chore: Preserve the priority of `clearScreen` option provided by user.
# 1.8.0
- feat: Add `scanOptions` to generate pages with a similar directory structure. Closed [#29](https://github.com/emosheeep/vite-plugin-virtual-mpa/issues/29).
- fix: Can't access assets by url & Prevent ejs syntax error. Closed [#30](https://github.com/emosheeep/vite-plugin-virtual-mpa/issues/30).
- chore: Remove redundant rewrite rules ensure a correct plugin hook order.
# 1.7.0
- feat: Add preview server's history fallback support. Merged [#26](https://github.com/emosheeep/vite-plugin-virtual-mpa/pull/26)
# 1.6.0
- fix: Warnings appear when `build.sourcemap` enabled. Closed [#19](https://github.com/emosheeep/vite-plugin-virtual-mpa/issues/19).
- fix: Page doesn't reload when template file change.
- feat: Integration of `html-minifier-terser`. Merged [#21](https://github.com/emosheeep/vite-plugin-virtual-mpa/pull/21).
# 1.5.0
- feat: Allow vite handling unmatched paths. Closed [#15](https://github.com/emosheeep/vite-plugin-virtual-mpa/issues/15).
# 1.4.1
- fix: Cypress testing process of cross-entry-page jumping hanging, which causing a timeout error. Closed [#12](https://github.com/emosheeep/vite-plugin-virtual-mpa/issues/12).
# 1.4.0
- feat: Add `createPages` utility function to help creating `pages` configuration independently outside plugin function. Closed [#10](https://github.com/emosheeep/vite-plugin-virtual-mpa/issues/10).
# 1.3.0
- feat: inject `env` variables into ejs template by default. Merged [#8](https://github.com/emosheeep/vite-plugin-virtual-mpa/pull/8).
# 1.2.2
- Expose all types for using. Closed [#4](https://github.com/emosheeep/vite-plugin-virtual-mpa/issues/4).
# 1.2.1
- Improve typings and add comments for a better prompts
# 1.2.0
- Improve typings.
# 1.2.0-beta.0
- Add `watchOptions` to allow users writing custom logic when file events fired. Closed [#2](https://github.com/emosheeep/vite-plugin-virtual-mpa/issues/2).
# 1.1.0
- Some backend logic is added to make the proxy work correctly
- Fix the warning about `Could not auto-determine entry point...` by add entry path to `optimizeDeps.entries`
- More friendly error/log print
- Improved documentation
# 1.0.1
- More friendly typescript type hints
# 1.0.0
- Support for virtual html entry file, output multiple files using a single template
- Support ejs engine.
- Support `connect-history-fallback-api` for DevServer to rewrite requests.