https://github.com/ykrods/rollup-plugin-simple-copy
https://github.com/ykrods/rollup-plugin-simple-copy
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ykrods/rollup-plugin-simple-copy
- Owner: ykrods
- License: mit
- Created: 2021-08-23T11:07:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-05T02:51:38.000Z (3 months ago)
- Last Synced: 2025-03-05T03:28:01.687Z (3 months ago)
- Language: JavaScript
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rollup-plugin-simple-copy / vite-plugin-simple-copy
## How to use
```javascript
// rollup.config.js
import copy from "rollup-plugin-simple-copy";export default {
// ...
plugins: [
copy({
targets: [
{ src: 'static', dest: 'dist' },
],
}),
],
};
``````javascript
// vite.config.js
import { defineConfig } from 'vite';
import copy from "rollup-plugin-simple-copy/vite";// https://vitejs.dev/config/
export default defineConfig({
plugins: [
copy({
extMap: {
".svg": "image/svg+xml",
},
targets: [
{
src: "node_modules/asset-library/dist/assets",
dest: "assets",
filter: (src) => /.+\.svg$/.test(src),
}
],
}),
],
})
```