@wemap/rollup-plugin-arraybuffer
v0.1.2
Published
Rollup plugin for arraybuffer
Downloads
589
Readme
@wemap/rollup-plugin-arraybuffer
🍣 A Rollup plugin which convert a binary file to a Uint8Array
Install
Using npm:
npm install @wemap/rollup-plugin-arraybuffer --save-dev
Usage
import arraybuffer from '@wemap/rollup-plugin-arraybuffer';
export default {
input: 'src/index.js',
output: {
dir: 'output',
format: 'cjs'
},
plugins: [arraybuffer({ include: '**/*.glb' })]
};
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