Project configuration

Any folder is a valid Phaser Editor 2D project. However, it is convenient to create a phasereditor2d.config.json project configuration file, it the root of the project’s folder.

Every Phaser Editor 2D’s project template contains this file so probably you don’t have to create it yourself.

These are the settings supported by the project configuration:

Name

Value

skip

An array with the patterns for filtering the project resources.

plugins

An array with the path to user plugins.

flags

An array with the server options.

playUrl

A string with the address to open in the browser when you execute a Play command (F12 or F10).

This is an example:

{
    "skip": ["dist/", "editor-plugins/"],
    "plugins":
        [
            "editor-plugins/my-fonts-plugins",
            "editor-plugins/my-awesome-plugins"
        ],
    "flags": ["-port", "7171", "-disable-gzip"],
    "playUrl": "http://localhost:4200"
}