
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
vite-plugin-multi-pages-entry
Advanced tools
Supply Chain Security
Vulnerability
Quality
Maintenance
License
对
Vite
的多页应用程序支持- 支持Vue2/3
、React
等
yarn add vite-plugin-multi-pages-entry
# or
pnpm add vite-plugin-multi-pages-entry
// vite.config.ts
import mpa from 'vite-plugin-multi-pages-entry'
// @see https://vitejs.dev/config/
export default defineConfig({
plugins: [
// ...other plugins
mpa(/* options */),
],
})
export interface MpaOptions {
/**
* viteDevServer的打开路径
* 此插件将尝试为您打开第一页,但您仍然可以自定义, e.g. /index#/about
* @default 第一页路径
*/
defaultOpenPage: string;
/**
* 扫描位置
* @default 'src/pages'
*/
scanDir: string;
/**
* 扫描文件
* @default 'main.{js,ts,jsx,tsx}'
*/
scanFile: string;
/**
* html 文件名
* @default 'index.html'
*/
filename: string;
/**
* default included entry
* @default ''
*/
defaultEntries: string;
/**
* 重写页面跳转规则
* @default []
*/
rewrites: Rewrite[]
/**
* 开启或打包 scanDir 下特定的页面
* @default 空 | app-four,app-nine
*/
specialPageNames: string;
/**
* 忽略开启或打包 scanDir 下特定的页面
* @default 空 | app-four,app-nine
*/
ignorePageNames: string;
/**
* 打包文件目录是否加入前缀
* @default 空 | string
*/
buildPrefixName: string;
/**
* 打包后是否不需要主目录
* @default false
* 配置为 true,会将 index.html 的父级目录删除,同时 index.html 名称会更改为 父目录名称.html
*/
htmlNoDirectory: boolean
}
see
src/examplesFAQs
Multi Page for vite
The npm package vite-plugin-multi-pages-entry receives a total of 0 weekly downloads. As such, vite-plugin-multi-pages-entry popularity was classified as not popular.
We found that vite-plugin-multi-pages-entry demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.