1.0.2 • Published 3 years ago

@ian-sun/rollup-plugin-raw v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

npm size

@ian-sun/rollup-plugin-raw

A Rollup plugin which imports any format files.

Install

Using npm:

npm install --save-dev @ian-sun/rollup-plugin-raw

Usage

Create a rollup.config.js configuration file and import the plugin:

// rollup.config.js
import raw from '@ian-sun/rollup-plugin-raw';

export default {
  input: 'input.js',
  output: {
    dir: 'output',
  },
  plugins: [raw()],
};

Then call rollup either via the CLI or the API.

Options

exclude

Type: String | Array[...String] Default: null

A minimatch pattern, or array of patterns, which specifies the files in the build the plugin should ignore. By default no files are ignored.

include

Type: String | Array[...String] Default: null

A minimatch pattern, or array of patterns, which specifies the files in the build the plugin should operate on. By default all files are targeted.

encoding

Type: String Default: null

A string, which specifies the character encoding to use for sources. By default no encoding is specified, which means the data is returned as a Buffer object.

License

LICENSE (MIT)

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago