sly-x86 / rollup-plugin-cp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rollup-plugin-cp

Simple plugin to copy source files to new destination.

Installation

You can use following npm command to install plugin:

npm install --save-dev rollup-plugin-cp

Usage

Add the following lines to your rollup.config.js:

import cp from 'rollup-plugin-cp';

export default {
    ...
    plugins: [
        cp({
            "src/main.css": "dist/main.css",
            "img/logo.svg": "dist/img/logo.svg",
            ...
        })
        ...
    ]
    ...
}

About

License:MIT License


Languages

Language:JavaScript 100.0%