rollup-plugin-copy-glob

0.3.2 • Public • Published

rollup-plugin-copy-glob

Rollup plugin to easily copy files and folders. Glob supported

Install

npm i -D rollup-plugin-copy-glob

Usage

import copy from 'rollup-plugin-copy-glob';

export default {
  input: 'src/index.js',
  output: {
    file: 'dist/bundle.js',
    format: 'iife',
    name: 'app'
  },
  plugins: [
    copy([
      { files: 'src/*.{html,css}', dest: 'dist' },
      { files: 'dev/fonts/*.*', dest: 'dist/fonts' },
      { files: 'dev/images/**/*.*', dest: 'dist/images' }
    ], { verbose: true, watch: true })
  ]
};

Options

  • verbose (default is false). Enable/disable logging
  • watch (default is false). Enable/disable watching. If disabled then copy only on start

/rollup-plugin-copy-glob/

    Package Sidebar

    Install

    npm i rollup-plugin-copy-glob

    Weekly Downloads

    3,102

    Version

    0.3.2

    License

    MIT

    Unpacked Size

    5.23 kB

    Total Files

    7

    Last publish

    Collaborators

    • alexander.zonov