rollup-plugin-copy-glob

Rollup plugin to easily copy files and folders. Glob supported

MIT 13 个版本
安装
npm install rollup-plugin-copy-glob
yarn add rollup-plugin-copy-glob
pnpm add rollup-plugin-copy-glob
bun add rollup-plugin-copy-glob
README

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.
版本列表
0.4.1 2024-11-08
0.4.0 2024-11-08
0.3.2 2021-08-06
0.3.1 2019-07-15
0.3.0 2019-01-08
0.2.2 2018-07-18
0.2.1 2018-07-18
0.2.0 2018-07-18
0.1.1 2018-05-04
0.1.0 2018-05-04
0.0.3 2018-05-04
0.0.2 2018-05-03
0.0.1 2018-05-03