/rollup-plugin-copy

Simple rollup plugin to copy static assets over to you public directory

Primary LanguageJavaScriptMIT LicenseMIT

rollup-plugin-copy

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",
            verbose: true
        })
        ...
    ]
    ...
}

Options

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

verbose