Back to results
TrickyPi/rollup-copy-smartly(opens in a new tab)
Language: TypeScript
a rollup copy plugin
- stars
- 3
- watchers
- 1
- forks
- 1
- open issues
- 0
- Last updated
- 07/18/2023
Language: TypeScript
a rollup copy plugin
Smartly copy files if they are changed, created or deleted.
npm install --save-dev rollup-copy-smartlyor
yarn add -D rollup-copy-smartlyor
pnpm add -D rollup-copy-smartlyrollup.config.js
import copy from "rollup-copy-smartly"; export default { ... plugins: [ copy({ src: "src/", pattern: /.html$/, dest: "dist/", }), ], };
| option | type | description |
|---|---|---|
| src | string | Path to dir which will be watching, it could be absolute path or relative path |
| pattern | RegExp or RegExp[ ] | Filter specific files |
| dest | string or string[ ] | Paths to dir which are output directorys, it could be absolute path or relative path |