-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Add a "vite clean" command #10986
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or requestp2-to-be-discussedEnhancement under consideration (priority)Enhancement under consideration (priority)
Description
Description
Many other build systems have a "Clean" command or equivalent that removes all caches and the build files/output folder.
While this is a minor thing I believe it would be useful.
Suggested solution
Add a "clean" command which calls the current output folder and cache cleaning functions.
Also add a "--force" option for dealing with the output folder being outside of the root, without having to modify the config.
Alternative
No response
Additional context
This came about because Vite preserves the "Read-only" status of files when copying on Windows. msbuild then refuses to remove them because they have that flag set. Meaning the only solution is to brute force a custom executable target and pray I don't mess up the path.
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestp2-to-be-discussedEnhancement under consideration (priority)Enhancement under consideration (priority)