Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

rollup-plugin-emit-files

1.0.0 • Public • Published

rollup-plugin-emit-files

This plugin allows you to emit files to rollup bundle.

Install

yarn add rollup-plugin-emit-files --dev

or

npm install rollup-plugin-emit-files -D

Usage

// rollup.config.js
 
import emitFiles from 'rollup-plugin-emit-files'
 
export default {
  // ...
  plugins: [
    emitFiles({ src: 'static' })
  ]
}

Options

{
  srcstring
  dest?: string
  include?: string | string[]
  exclude?: string | string[]
}

src

Source directory to find files from.

Required

dest

Relative path from bundle location where to output files.

Default: '.'

include

Glob or array of globs defining which files to include.

Default: '**/*'

exclude

Glob or array of globs defining which files to exclude.

Default: []

Keywords

none

Install

npm i rollup-plugin-emit-files

DownloadsWeekly Downloads

152

Version

1.0.0

License

MIT

Unpacked Size

5.04 kB

Total Files

9

Last publish

Collaborators

  • avatar