Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
copy-vite-plugin
Advanced tools
Readme
The most simple and easy-to-use vite copy plugin.
use like copy-webpack-plugin
If you are migrating from webpack to vite and looking for an copy plugin, this plugin will be very suitable for you.
Compare the usage of copy-webpack-plugin
and copy-vite-plugin
:
// webpack.config.js
const CopyPlugin = require('copy-webpack-plugin')
module.exports = {
plugins: [
new CopyPlugin({
patterns: [
// copy dir
{ from: 'src/images', to: 'images' },
// copy file
{ from: 'src/constants/info.json', to: 'info.json' }
]
})
]
}
// vite.config.ts
import { copy } from 'copy-vite-plugin'
export default defineConfig({
plugins: [
copy({
pattern: [
// copy dir
{ from: 'src/images', to: 'images' },
// copy file
{ from: 'src/constants/info.json', to: 'info.json' }
]
})
]
})
# npm
npm i copy-vite-plugin -D
# yarn
yarn add copy-vite-plugin -D
# pnpm
pnpm add copy-vite-plugin -D
FAQs
> The most simple and easy-to-use vite copy plugin.
The npm package copy-vite-plugin receives a total of 52 weekly downloads. As such, copy-vite-plugin popularity was classified as not popular.
We found that copy-vite-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.