
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
vite-plugin-multi-pages
Advanced tools
English | δΈζ
Multi page applications supporting vite - vue2γ3, react, etc
yarn add vite-plugin-multi-pages
# or
pnpm add vite-plugin-multi-pages
vite.config.ts
import mpa from 'vite-plugin-multi-pages';
export default defineConfig({
plugins: [mpa(/* options */)],
});
export interface MpaOptions {
/**
* defaultOpenPage
* @default true
* @example / (root path) | true (first page) | test-two
*/
defaultOpenPage: '/' | boolean | string;
/**
* scanning dir
* @default src/views
*/
scanDir: string;
/**
* scanFile
* @default 'main.{js,ts,jsx,tsx}'
*/
scanFile: string;
/**
* html fileName
* @default 'index.html'
*/
filename: string;
/**
* rewrite rule list
* @default []
*/
rewrites: Rewrite[];
/**
* open or build a specific page under scanDir
* @default ''
* @example test-one,test-twos
*/
specialPageNames: string;
/**
* ignore open or build a specific page under scanDir
* @default ''
* @example test-twos
*/
ignorePageNames: string;
}
vite-plugin-html-template-mpa
plugin : https://github.com/Miofly/vite-plugin-html-template-mpavite-plugin-vconsole-mpa
plugin config
vconsole : https://github.com/Miofly/vite-plugin-vconsole-mpaFAQs
Multi Page for vite
The npm package vite-plugin-multi-pages receives a total of 34 weekly downloads. As such, vite-plugin-multi-pages popularity was classified as not popular.
We found that vite-plugin-multi-pages demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.Β It has 2 open source maintainers 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
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.