vite-plugin-virtual-mpa
Advanced tools
Comparing version 1.10.1 to 1.11.0
# vite-plugin-virtual-mpa | ||
## 1.11.0 | ||
### Minor Changes | ||
- feat: Support configuring response headers for development environment server | ||
## 1.10.1 | ||
@@ -4,0 +10,0 @@ |
@@ -320,2 +320,5 @@ "use strict"; | ||
} | ||
Object.entries(config2?.server?.headers || {}).forEach(([key, value]) => { | ||
res.setHeader(key, value); | ||
}); | ||
res.setHeader("Content-Type", "text/html"); | ||
@@ -322,0 +325,0 @@ res.statusCode = 200; |
{ | ||
"name": "vite-plugin-virtual-mpa", | ||
"version": "1.10.1", | ||
"version": "1.11.0", | ||
"author": "秦旭洋 <emosheep@qq.com>", | ||
"license": "MIT", | ||
"author": "秦旭洋", | ||
"description": "Out-of-box MPA plugin for Vite, with html template engine and virtual files support.", | ||
"packageManager": "pnpm@8.15.3", | ||
"main": "./dist/index.js", | ||
@@ -16,7 +18,5 @@ "module": "./dist/index.mjs", | ||
}, | ||
"description": "Out-of-box MPA plugin for Vite, with html template engine and virtual files support.", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/emosheeep/vite-plugin-virtual-mpa", | ||
"directory": "workspaces/plugin" | ||
"url": "https://github.com/emosheeep/vite-plugin-virtual-mpa" | ||
}, | ||
@@ -52,3 +52,3 @@ "bugs": { | ||
"tsup": "^8.0.1", | ||
"vite": "^5.1.1" | ||
"vite": "^5.1.3" | ||
}, | ||
@@ -58,4 +58,21 @@ "devDependencies": { | ||
"@types/ejs": "^3.1.5", | ||
"@types/node": "^18.19.15", | ||
"typescript": "^5.3.3" | ||
"@commitlint/cli": "^18.5.0", | ||
"@commitlint/config-conventional": "^18.5.0", | ||
"@typescript-eslint/eslint-plugin": "^6.21.0", | ||
"@typescript-eslint/parser": "^6.21.0", | ||
"@vue/eslint-config-typescript": "^12.0.0", | ||
"eslint": "^8.56.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-config-standard": "^17.1.0", | ||
"eslint-define-config": "^2.1.0", | ||
"eslint-plugin-import": "^2.29.1", | ||
"eslint-plugin-n": "^15.7.0", | ||
"eslint-plugin-prettier": "^5.1.3", | ||
"eslint-plugin-promise": "^6.1.1", | ||
"eslint-plugin-vue": "^9.21.1", | ||
"lint-staged": "^15.2.2", | ||
"prettier": "^3.2.5", | ||
"simple-git-hooks": "^2.9.0", | ||
"typescript": "^5.3.3", | ||
"vue-eslint-parser": "^9.4.2" | ||
}, | ||
@@ -65,5 +82,10 @@ "peerDependencies": { | ||
}, | ||
"simple-git-hooks": { | ||
"commit-msg": "npx commitlint -e", | ||
"pre-commit": "npx lint-staged && npx tsc --noEmit" | ||
}, | ||
"scripts": { | ||
"build": "tsup", | ||
"watch": "tsup --watch", | ||
"build": "tsup", | ||
"lint": "eslint . --fix --ext .js,.ts", | ||
"changeset": "changeset", | ||
@@ -70,0 +92,0 @@ "versions": "changeset version" |
@@ -9,3 +9,3 @@ # vite-plugin-virtual-mpa ⚡ | ||
Out-of-box MPA plugin for Vite 📦, with html template engine and virtual files support, generate multiple files using only one template. | ||
Out-of-box MPA plugin for Vite 📦, with html template engine and virtual files support, generate multiple entries using only one template. | ||
@@ -21,2 +21,14 @@ English | [中文](./README.zh_CN.md) | ||
## Quick Start | ||
View the [cloud ide](https://stackblitz.com/~/github.com/emosheeep/vite-plugin-virtual-mpa) on stackblitz.com, and setup with the following scripts: | ||
```sh | ||
pnpm install | ||
cd example | ||
pnpm serve/build | ||
``` | ||
Then you can try whatever you want. | ||
## Usage | ||
@@ -23,0 +35,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69256
858
353
21
Updatedvite@^5.1.3