{"library":"vite-plugin-static-copy","type":"library","category":null,"description":"vite-plugin-static-copy is a Vite plugin designed to copy static assets during both development and production builds, mirroring the functionality of `rollup-plugin-copy` but optimized for Vite's ecosystem. It is currently at version 4.1.0 and maintains an active release cadence with frequent updates and bug fixes, often several per month. Key differentiators include its dedicated dev server support, which avoids copying files during development for faster startup times by serving them directly. Unlike Vite's built-in public directory, this plugin allows for more granular control over specific files and directories, offering options like renaming, stripping base paths (`stripBase`), and transformation of content. It specifically targets scenarios where assets need to be programmatically managed or placed outside the standard public directory, or when `import` statements are not suitable for asset inclusion. It uses `tinyglobby` for pattern matching, aligning with Vite's internal dependencies, and preserves directory structure by default, unlike `rollup-plugin-copy`'s default `flatten: true`.","language":"javascript","status":"active","version":"4.1.0","tags":["javascript","vite","vite-plugin","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install vite-plugin-static-copy","imports":["import { viteStaticCopy } from 'vite-plugin-static-copy'","import type { ViteStaticCopyOptions } from 'vite-plugin-static-copy'","import type { RenameOptions } from 'vite-plugin-static-copy'"]},{"cmd":"yarn add vite-plugin-static-copy","imports":[]},{"cmd":"pnpm add vite-plugin-static-copy","imports":[]}],"homepage":null,"github":"https://github.com/sapphi-red/vite-plugin-static-copy","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vite-plugin-static-copy","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/vite-plugin-static-copy/compatibility"}}