0.1.0 • Published 6 years ago

rollup-plugin-fse-copy v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

rollup-plugin-copy

Forked from https://github.com/meuter/rollup-plugin-copy. Published as a backup.

Very basic rollup plugin to copy static assets over to you public directory. Files are copied using fs-extra.copy

Installation

This package can be installed using npm:

npm install rollup-plugin-copy

Usage

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

import copy from 'rollup-plugin-copy';

...

export default {
    ...
    plugins: [
        ...
        copy({
            "src/index.html": "dist/index.html",
            "node_modules/bootstrap/dist": "dist/vendor/bootstrap",
            "node_modules/font-awesome": "dist/vendor/font-awesome",
            "src/main.html": [ "dist/main.html", "lib/main.html" ],
            verbose: true
        })
        ...
    ]
    ...
}

Options

  • verbose: <boolean> : display verbose message (default is false)

verbose