Closed RyaiStudio closed 2 years ago
I have re-tested this package and it works as expected. Here is a StackBlitz Link
https://stackblitz.com/edit/vite-plugin-ejs?file=index.html
Open the preview
in a new window and you should see the page title is set to My vue project!
without errors
Looking at your test.config.js
file, I see that you are merging with lodash
I guess this may be the reason.
Do let me know if you get it resolved.
I think the reason is that vite-plugin-html
does not work together.
I try to remove the other plugin and it works perfectly fine.
vite-plugin-html
has same functionality on inject data maybe that why.
Try registering VitePluginEjs at the end.. after vite-plugin-html
Did this work out? I would like to close this issue if you have resolved it.
variable is undefined vite ejs plugin
test.config.js
vite.html
now I'm getting error
node: v16.15.0