Skip to content

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

License

Notifications You must be signed in to change notification settings

aymanenadi/rollup-plugin-copy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%