Open Rick02022 opened 1 year ago
You don't need to installing additional package for use pug.
Check this project:
https://stackblitz.com/edit/vitejs-vite-iqkgpj?file=src/App.vue
I try to run that project, but its building production is wrong. Is that normal?
I had the same issue only for production. It happens when a Vue file doesn't begin with "<template", e.g. you have the script block first, or even if there is an empty line first. You can exchange "startsWith" with "includes" in the plugin source, and all will work as desired.
This is my vite.config, but it isn't work. It still have error 'unexpected token "indent"' at run build. I use Vite v4.0.0. What part have I done wrong?