vite-plugin-auto-mpa-html
Advanced tools
Comparing version
@@ -1,5 +0,19 @@ | ||
# [1.1.0](https://github.com/iamspark1e/vite-plugin-auto-mpa-html/compare/v1.1.0-alpha.4...v1.1.0) (2023-11-05) | ||
## [1.1.1](https://github.com/iamspark1e/vite-plugin-auto-mpa-html/compare/v1.1.0-alpha.3...v1.1.1) (2023-12-15) | ||
### Bug Fixes | ||
* dev server can correctly recognize url search params now ([1eaa683](https://github.com/iamspark1e/vite-plugin-auto-mpa-html/commit/1eaa68307dafd0961d9e548e6541c371ac04a188)) | ||
# [1.1.0](https://github.com/iamspark1e/vite-plugin-auto-mpa-html/compare/v1.1.0-alpha.3...v1.1.0) (2023-12-15) | ||
### Bug Fixes | ||
* dev server can correctly recognize url search params now ([1eaa683](https://github.com/iamspark1e/vite-plugin-auto-mpa-html/commit/1eaa68307dafd0961d9e548e6541c371ac04a188)) | ||
# [1.1.0-alpha.4](https://github.com/iamspark1e/vite-plugin-auto-mpa-html/compare/v1.1.0-alpha.3...v1.1.0-alpha.4) (2023-10-17) | ||
@@ -6,0 +20,0 @@ |
@@ -289,3 +289,5 @@ var __defProp = Object.defineProperty; | ||
var _a, _b; | ||
const fileUrl = req.url || ""; | ||
let fileUrl = req.url || ""; | ||
if (fileUrl.includes("?")) | ||
fileUrl = fileUrl.split("?")[0]; | ||
if (!fileUrl.endsWith(".html") && fileUrl !== "/") | ||
@@ -292,0 +294,0 @@ return next(); |
{ | ||
"name": "vite-plugin-auto-mpa-html", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A file directory-based automated multi-page Vite plugin that supports HTML templates using EJS.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
65350
0.99%888
0.45%