rollup-plugin-match

1.0.0 • Public • Published

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

/rollup-plugin-match/

    Package Sidebar

    Install

    npm i rollup-plugin-match

    Weekly Downloads

    296

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    1.64 kB

    Total Files

    3

    Last publish

    Collaborators

    • fengxinming