Jump to content

[Plugin] phaser-nineslice, yet another nine slice/patch plugin


Str1ngS
 Share

Recommended Posts

  • 1 year later...

@Str1ngS It works!! Attached is my final working webpack.config.js.

Note that there is a quirk, in the code, whenever I use:

import Phaser from "phaser-ce"

This will cause the plugin to show this error: "The value passed as the `game` argument ([object Object]) is not an instance of Phaser.Game."

I fixed this problem by changing the import statement to:

import Phaser from "phaser"

This is so that the instance of Phaser that is used by Nineslice and the game is the same. Because in my webpack.config.js file, I explicitly wrote "phaser" in resolve.alias, which is ultimately used by PhaserNineSlice plugin, not "phaser-ce".

Thanks again for your help!

webpack.config.js

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...