Skip to content
New issue

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

[疑问] vite 开发模式下,插件不工作? #160

Open
baijunjie opened this issue Aug 16, 2024 · 0 comments
Open

[疑问] vite 开发模式下,插件不工作? #160

baijunjie opened this issue Aug 16, 2024 · 0 comments

Comments

@baijunjie
Copy link

baijunjie commented Aug 16, 2024

插件配置如下

 createHtmlPlugin({
  minify: false,
  entry: path.resolve(__dirname, 'src/main.js'),
  template: path.resolve(__dirname, 'src/template/index.html'),
}),

由于使用了 template/index.html,所以原本在 root 目录下的 index.html 已经被移除,但是在开发模式下直接找不到入口了?
image
version
vite: 5.3.4
vite-plugin-html: 3.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant