1.0.5 • Published 3 years ago

@ian-sun/rollup-plugin-string v1.0.5

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

npm size

@ian-sun/rollup-plugin-string

A Rollup plugin which imports files as string.

Install

Using npm:

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

Usage

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

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

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

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.

License

LICENSE (MIT)

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago