Gathering detailed insights and metrics for vite-plugin-html-template
Gathering detailed insights and metrics for vite-plugin-html-template
Gathering detailed insights and metrics for vite-plugin-html-template
Gathering detailed insights and metrics for vite-plugin-html-template
vite-plugin-html
A plugin for vite to Minimize index.html and use lodash.template template syntax in index.html
vite-plugin-html-template-mpa
html template map for vite
vite-plugin-virtual-mpa
Out-of-box MPA plugin for Vite, with html template engine and virtual files support.
vite-html
html template for vite
html template for vite, like html-webpack-plugin for webpack.
npm install vite-plugin-html-template
Typescript
Module System
Node Version
NPM Version
TypeScript (86.84%)
JavaScript (13.16%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
124 Stars
67 Commits
22 Forks
3 Watchers
1 Branches
7 Contributors
Updated on May 11, 2025
Latest Version
1.2.2
Package Id
vite-plugin-html-template@1.2.2
Unpacked Size
221.41 kB
Size
44.94 kB
File Count
4
NPM Version
6.14.16
Node Version
12.22.12
Published on
Oct 22, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
HTML template for vite app, like html-webpack-plugin for webpack.
It works perfectly together with vite-plugin-mpa.
<title></title>
.1yarn add -D vite-plugin-html-template
1// vite.config.ts 2import htmlTemplate from 'vite-plugin-html-template' 3 4// @see https://vitejs.dev/config/ 5export default defineConfig({ 6 plugins: [ 7 // ...other plugins 8 htmlTemplate(/* options */), 9 ], 10})
1// for SPA, there is nothing to do, just use `public/index.html` as template 2 3// for MPA, customise the template path (default is `public/index.html`) and page title: 4{ 5 // where is the pages' root directory? 6 pagesDir: 'src/pages', 7 // define pages like it is done in vue-cli 8 pages: { 9 index: { 10 template: './public/index.html', 11 title: 'Homepage', 12 }, 13 subpage: { 14 template: './src/pages/subpage/index.html', 15 title: 'Subpage', 16 }, 17 }, 18 // expose to template 19 data: { 20 title: 'Homepage', 21 }, 22}
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
Found 8/22 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
44 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More