Closed
Description
Clear and concise description of the problem
@sapphi-red made Terser an optional dep with:
@TrySound suggested that we do the same with node-forge. It is a big dependency (1.5MB) and it is only needed when creating an HTTP cert:
Suggested solution
We have two options:
- Make the dep optional leaving the functionality as-is. If the user doesn't include a cert, we'll ask them to install node-forge.
- Move the auto-generated HTTP cert logic to a new @vitejs/plugin-basic-ssl. See comment from @dominikg here fix: pregenerate https certificate #6173 (comment). Add documentation to explain how to properly generate certs and do a proper SSL setup (and link to the basic SSL plugin as an option, but not even the best)
I think 2. is better here. Opening the issue in case someone wants to work on it, I'll get to it if not before v3.
Alternative
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Metadata
Assignees
Type
Projects
Status
Discussing
Activity