vite-plugin-static-copy@4.0.0
·
14 commits
to main
since this release
Major Changes
-
#235
b2edc86Thanks @sapphi-red! - Simplify glob behavior and always preserve directory structure.Breaking changes:
- Only files are matched. Glob patterns no longer match directory entries. Previously, matching a directory would recursively copy it via
fs.cp, which caused files to be copied twice when using**patterns. - Directory patterns are auto-expanded.
src: 'assets'now automatically expands to match all files inside the directory, using tinyglobby's built-inexpandDirectoriesoption. No migration needed for this pattern alone. structuredoption removed. Directory structure is now always preserved in the output. Thestructuredoption has been removed entirely. Userename: { stripBase: true }to flatten output paths when needed.
- Only files are matched. Glob patterns no longer match directory entries. Previously, matching a directory would recursively copy it via
-
#237
6129008Thanks @sapphi-red! - Drop support for Vite 5 -
#238
9766e42Thanks @sapphi-red! - Drop support for Node 18, 20, 21, 23. The new support range is^22.0.0 || >= 24.0.0.