
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
copy-vite-plugin
Advanced tools
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 245 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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.