directory
packages/common/template/index.html
packages/project/vue.config.js
vue.config.js plugin config
createHtmlPlugin({
minify: false,
entry: path.resolve(__dirname, 'src/main.js'),
filename: 'index.html',
template: path.resolve(__dirname, '../common/template/index.html'),
}),
build error
[vite:build-html] The "fileName" or "name" properties of emitted chunks and assets must be strings that are neither absolute nor relative paths, received "../common/template/index.html".
version
vite: 5.3.4
vite-plugin-html: 3.2.2