# How to use plugins? (Board plugin by Rex)

**URL:** <https://phaser.discourse.group/t/how-to-use-plugins-board-plugin-by-rex/3256>\
**Category:** Phaser 3\
**Created:** [July 27, 2019, 3:57pm UTC](https://phaser.discourse.group/t/how-to-use-plugins-board-plugin-by-rex/3256 "2019-07-27T15:57:23Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![rexrainbow](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/rexrainbow/32/51_2.png) [@rexrainbow](https://phaser.discourse.group/u/rexrainbow)\
**Post date:** [January 5, 2020, 10:38am UTC](https://phaser.discourse.group/t/how-to-use-plugins-board-plugin-by-rex/3256/4 "2020-01-05T10:38:44Z")

</div>

[Here](https://codepen.io/rexrainbow/pen/rNNqpPg) is a demo of using rexBoard plugin.  
To use rexBoard plugin in your project, try these steps:

1. Get minify source code from [here](https://github.com/rexrainbow/phaser3-rex-notes/blob/master/dist/rexboardplugin.min.js), or [here](https://raw.githubusercontent.com/rexrainbow/phaser3-rex-notes/master/dist/rexboardplugin.min.js)
2. Import rexBoard:
  - If you don’t use webpack, try include this minify rexBoard file by `<script>` tag, like that demo does.
  - If you use webpack, try include the rexBoard module by

```javascript
import RexBoardPlugin from path

```

3. Install rexBoard plugin:
  - If you don’t use webpack, try install plugin by

```javascript
plugins: {
      scene: [{
          key: 'rexBoard',
          plugin: rexboardplugin,
          mapping: 'rexBoard'
      }]
}

```

the value of `plugin` property ought to be **rexboardplugin** , see that demo, line 135-141
  - If you use webpack, try install plugin by

```javascript
plugins: {
      scene: [{
          key: 'rexBoard',
          plugin: RexBoardPlugin,
          mapping: 'rexBoard'
      }]
}

```

the value of `plugin` property is equal to the import name in step 2.

[Here](https://codepen.io/rexrainbow/pen/QWWVrMx?editors=0010) is another demo of using rexBoard plugin, which install rexBoard in preload stage. See line 13-17

```javascript
this.load.scenePlugin({
    key: 'rexboardplugin',
    url: 'https://raw.githubusercontent.com/rexrainbow/phaser3-rex-notes/master/plugins/dist/rexboardplugin.min.js',
    sceneKey: 'rexBoard'
});       

```

---

_[View the full topic](https://phaser.discourse.group/t/how-to-use-plugins-board-plugin-by-rex/3256)._
