Skip to content

vite-plugin-static-copy@3.4.0

Choose a tag to compare

@github-actions github-actions released this 22 Mar 07:09
· 18 commits to main since this release
8ffb5ac

Minor Changes

  • #233 f665a15 Thanks @sapphi-red! - Add { stripBase: number } object form to the rename option. 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/**/* with structured: 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 use rename: { stripBase: N } to declaratively strip the leading segments.