JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 864579
  • Score
    100M100P100Q185428F
  • License MIT

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

Package Exports

  • rollup-plugin-copy

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rollup-plugin-copy) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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-copy-plugin

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)