vite-plugin-vue
vite-plugin-vue copied to clipboard
How to clear the comments in the template after packaging?
Related plugins
-
[X] plugin-vue
-
[ ] plugin-vue-jsx
Describe the bug
How to clear the comments in the template after packaging?
Reproduction
no
Steps to reproduce
System Info
win11
Used Package Manager
pnpm
Logs
No response
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guidelines.
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- [X] The provided reproduction is a minimal reproducible example of the bug.
try setting it like this: vue({ template: { compilerOptions: { comments: false } } })