rollup-plugin-match

A rollup plugin for matching files.

Usage no npm install needed!

<script type="module">
  import rollupPluginMatch from 'https://cdn.skypack.dev/rollup-plugin-match';
</script>

README

rollup-plugin-match

A rollup plugin for matching files.

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