Unable to render HTML comments in Components. #12902
-
I have a Vue componentthat renders an article as HTML, a 3rd party requires that we indicate where in the page headlines and article content are with html comments, which show up locally on my dev server, but once deployed to our production server they dissapear, even though the code is actually builtin dev mode because vite.config has
I also have Yet the comments are not visible anywhere. Is there another setting I'm missing that might be causing the comments not to be rendered? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Did you configure @vitejs/plugin-vue? Try this in your Vite config: vue({
template: {
compilerOptions: {
comments: true,
},
},
}) |
Beta Was this translation helpful? Give feedback.
Did you configure @vitejs/plugin-vue? Try this in your Vite config: