1.0.2 • Published 3 years ago
@ian-sun/rollup-plugin-raw v1.0.2
@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.