vite version: >=5.0.0 yarn add vite-plugin-html-config -D Options title : set your html title favicon : html favicon url (href url) metas : html meta tag, such as key=xx,value=xxx links : html head link tag style : html style string ...
"vite": ">=5.0.0" }, "engines": {"node": ">=12.0.0"4 changes: 2 additions & 2 deletions 4 src/index.ts Original file line numberDiff line numberDiff line change @@ -58,8 +58,8 @@ export default function HtmlPlugin(rawOptions: Options): Plugin { return { name: "html-...
通过监听文件修改,自动重启 vite 服务 最常用的场景就是监听 vite.config.js 和 .env.development 文件,修改 vite 配置文件和环境配置文件,是需要重启 vite 才会生效,通过这个插件,在修改上述两个文件则不需要重新运行 安装 npm i vite-plugin-restart -D 配置:vite.config.js import ViteRestart from 'vite-plug...
// vite.config.js import htmlPlugin from 'vite-plugin-html-config' const htmlPluginOpt = { favicon: './logo.svg', headScripts: [ `var msg = 'head script' console.log(msg);`, { async: true, src: 'https://abc.com/b.js', type: 'module', }, { content: `console.log('hello'...
plugin for vite to inject data into html and request proxy - vite-plugin-template-html/build.config.ts at main · includeios/vite-plugin-template-html
Describe the bug The slidev:config plugin configures the Vite dev server to load the built-in Vue index page for any request URLs ending with .html. This makes it so Vite cannot be used to serve additional pages that might be used as emb...
自动打包版本构建信息到html文档. Contribute to POfeiY/vite-plugin-build-info-to-html development by creating an account on GitHub.