Socket
Socket
Sign inDemoInstall

rollup-plugin-copy-glob

Package Overview
Dependencies
27
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    rollup-plugin-copy-glob

Rollup plugin to easily copy files and folders. Glob supported


Version published
Weekly downloads
2.7K
decreased by-18.66%
Maintainers
1
Install size
573 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 06 Aug 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc