Skip to content

zont/rollup-plugin-copy-glob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rollup-plugin-copy-glob

Rollup plugin to easily copy files and folders. Glob supported. Rename 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: 'src/config.template', dest: 'dist', rename: 'config.json' },
      { files: 'dev/images/**/*.*', dest: 'dist/images' }
    ], { verbose: true, watch: true })
  ]
};

Options

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published