We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import { fileURLToPath, URL } from 'node:url' import { createHtmlPlugin } from 'vite-plugin-html' import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import vueJsx from '@vitejs/plugin-vue-jsx' // https://vitejs.dev/config/ export default defineConfig({ plugins: [ vue(), vueJsx(), createHtmlPlugin({ minify: true, template: '/src/index.html' }) ], resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) } }, server: { port: 5176 } })
使用插件的template属性修改html的位置后,使用fetch请求就会404。
template
The text was updated successfully, but these errors were encountered:
No branches or pull requests
报错信息
配置项
描述
使用插件的
template
属性修改html的位置后,使用fetch请求就会404。The text was updated successfully, but these errors were encountered: