0.1.2 • Published 4 years ago

@wemap/rollup-plugin-arraybuffer v0.1.2

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

npm size

@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