Skip to content

Latest commit

 

History

History

rollup-plugin-match

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

rollup-plugin-match

npm package

A rollup plugin for matching files.

NPM version NPM Downloads

Installation

npm install rollup-plugin-match --save-dev

Usage

rollup.config.js

generate chunks

const match = require('rollup-plugin-match');
const empty = require('rollup-plugin-empty');

module.exports = {
  input: 'src/*.js',
  plugins: [
    empty({
      silent: false,
      dir: 'dist/es'
    }),
    match(),
  ],
  output: {
    dir: 'dist/es',
    format: 'es'
  }
};

Options

See the fast-glob options