Skip to content

chore(deps): bump vite-plugin-static-copy from 3.1.4 to 4.1.1#908

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/vite-plugin-static-copy-4.1.1
Open

chore(deps): bump vite-plugin-static-copy from 3.1.4 to 4.1.1#908
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/vite-plugin-static-copy-4.1.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 28, 2026

Copy link
Copy Markdown
Contributor

Bumps vite-plugin-static-copy from 3.1.4 to 4.1.1.

Release notes

Sourced from vite-plugin-static-copy's releases.

vite-plugin-static-copy@4.1.1

Patch Changes

  • #240 671579b Thanks @​saif-shines! - Use each environment's resolved build.outDir when copying static assets during build. Previously the plugin kept only the last configResolved config, so multi-environment setups (for example Astro with separate client and SSR output directories) could copy files into the wrong folder.

vite-plugin-static-copy@4.1.0

Minor Changes

  • #251 7672842 Thanks @​sapphi-red! - Add name property to the rename object form and allow rename functions to return a RenameObject. The name property replaces the file's basename (filename + extension), and can be combined with stripBase to both flatten directory structure and rename the file in one step. Rename functions can now return { name, stripBase } objects instead of only strings, making it easier to declaratively control output paths from dynamic rename logic.

    // node_modules/lib/dist/index.js → vendor/lib.js
    { src: 'node_modules/lib/dist/index.js', dest: 'vendor', rename: { name: 'lib.js', stripBase: true } }
    // src/pages/events/test.html → dist/events/index.html
    { src: 'src/pages/**/*.html', dest: 'dist/', rename: { stripBase: 2, name: 'index.html' } }

vite-plugin-static-copy@4.0.1

Patch Changes

  • #249 c6bf44c Thanks @​sapphi-red! - Fix absolute dest paths being nested under the output directory

    When dest was an absolute path and the source file had a directory component (structured output), the path was incorrectly converted to a relative path, causing files to be nested under the build output directory instead of being copied to the specified absolute path.

    { src: 'foo/foo.txt', dest: '/home/user/my-repo/bar' }

    Before: /home/user/my-repo/dist/home/user/my-repo/bar/foo/foo.txt After: /home/user/my-repo/bar/foo/foo.txt

  • #247 d3af79e Thanks @​sapphi-red! - Fix rename.stripBase to work correctly with ../ paths

    Previously, stripBase counted .. as directory segments, causing incorrect output paths when copying from parent directories.

    { src: '../../src/pages/**/*.html', dest: 'dist/', rename: { stripBase: 2 } }

    Before: dist/src/pages/events/test.html After: dist/events/test.html

    { src: '../../src/pages/**/*.html', dest: 'dist/', rename: { stripBase: true } }

    Before: dist/src/pages/events/test.html After: dist/test.html

... (truncated)

Changelog

Sourced from vite-plugin-static-copy's changelog.

4.1.1

Patch Changes

  • #240 671579b Thanks @​saif-shines! - Use each environment's resolved build.outDir when copying static assets during build. Previously the plugin kept only the last configResolved config, so multi-environment setups (for example Astro with separate client and SSR output directories) could copy files into the wrong folder.

4.1.0

Minor Changes

  • #251 7672842 Thanks @​sapphi-red! - Add name property to the rename object form and allow rename functions to return a RenameObject. The name property replaces the file's basename (filename + extension), and can be combined with stripBase to both flatten directory structure and rename the file in one step. Rename functions can now return { name, stripBase } objects instead of only strings, making it easier to declaratively control output paths from dynamic rename logic.

    // node_modules/lib/dist/index.js → vendor/lib.js
    { src: 'node_modules/lib/dist/index.js', dest: 'vendor', rename: { name: 'lib.js', stripBase: true } }
    // src/pages/events/test.html → dist/events/index.html
    { src: 'src/pages/**/*.html', dest: 'dist/', rename: { stripBase: 2, name: 'index.html' } }

4.0.1

Patch Changes

  • #249 c6bf44c Thanks @​sapphi-red! - Fix absolute dest paths being nested under the output directory

    When dest was an absolute path and the source file had a directory component (structured output), the path was incorrectly converted to a relative path, causing files to be nested under the build output directory instead of being copied to the specified absolute path.

    { src: 'foo/foo.txt', dest: '/home/user/my-repo/bar' }

    Before: /home/user/my-repo/dist/home/user/my-repo/bar/foo/foo.txt After: /home/user/my-repo/bar/foo/foo.txt

  • #247 d3af79e Thanks @​sapphi-red! - Fix rename.stripBase to work correctly with ../ paths

    Previously, stripBase counted .. as directory segments, causing incorrect output paths when copying from parent directories.

    { src: '../../src/pages/**/*.html', dest: 'dist/', rename: { stripBase: 2 } }

    Before: dist/src/pages/events/test.html After: dist/events/test.html

    { src: '../../src/pages/**/*.html', dest: 'dist/', rename: { stripBase: true } }

... (truncated)

Commits
  • 63dd788 chore: update versions (#259)
  • 671579b fix: use environment-specific outDir in build plugin for Vite 6 (#240)
  • 01757de chore(deps): update pnpm to v11
  • 707a0fe ci: pin actions
  • f0df2ad fix(deps): update all non-major dependencies (#257)
  • efb0d50 fix(deps): update all non-major dependencies (#255)
  • e95cd6e chore: update versions (#253)
  • 7672842 feat: add name property to RenameObject and allow RenameFunc to return ...
  • 7ae0134 chore: update versions (#248)
  • de515fa chore(deps): update dependency typescript to v6 (#245)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [vite-plugin-static-copy](https://github.com/sapphi-red/vite-plugin-static-copy) from 3.1.4 to 4.1.1.
- [Release notes](https://github.com/sapphi-red/vite-plugin-static-copy/releases)
- [Changelog](https://github.com/sapphi-red/vite-plugin-static-copy/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sapphi-red/vite-plugin-static-copy/compare/vite-plugin-static-copy@3.1.4...vite-plugin-static-copy@4.1.1)

---
updated-dependencies:
- dependency-name: vite-plugin-static-copy
  dependency-version: 4.1.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Jun 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants