vite-plugin-static-copy@3.4.0
·
18 commits
to main
since this release
Minor Changes
-
#233
f665a15Thanks @sapphi-red! - Add{ stripBase: number }object form to therenameoption. This strips the given number of leading directory segments from the matched path, avoiding the need for manual../traversals in a rename function.This is useful when copying files from deep paths like
node_modules/my-lib/dist/**/*withstructured: true, where the full directory structure would otherwise be preserved in the output. Instead of writing a rename function that manually returns../traversals to flatten unwanted nesting, you can userename: { stripBase: N }to declaratively strip the leading segments.