rollup-plugin-kontra

1.0.1 • Public • Published

Rollup plugin kontra

Installation

npm install --save-dev rollup-plugin-kontra 

Usage

// rollup.config.js
import kontra from 'rollup-plugin-kontra'
 
export default {
  entry: 'entry.js',
  dest: 'bundle.js',
  plugins: [
    kontra({
      gameObject: {
        // enable only velocity and rotation functionality
        velocity: true,
        rotation: true
      },
      vector: {
        // enable vector length functionality
        length: true
      },
      // turn on debugging
      debug: true
    })
  ]
}

Options

See Kontra.js docs for a list of available options. All options default to false.

Dependencies (1)

Dev Dependencies (3)

Package Sidebar

Install

npm i rollup-plugin-kontra

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

4.05 kB

Total Files

4

Last publish

Collaborators

  • straker