Skip to content

TrickyPi/rollup-copy-smartly

Repository files navigation

rollup-copy-smartly

Features

Smartly copy files if they are changed, created or deleted.

Getting Started

npm install --save-dev rollup-copy-smartly

or

yarn add -D rollup-copy-smartly

or

pnpm add -D rollup-copy-smartly

Use

rollup.config.js

import copy from "rollup-copy-smartly";
export default {
    ...
    plugins: [
        copy({
            src: "src/",
            pattern: /.html$/,
            dest: "dist/",
        }),
    ],
};

Options

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

About

a rollup copy plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published