Skip to content

Commit 084c453

Browse files
committed
Added the PIXI.WebGLGraphics and PIXI.CanvasGraphics files to the Graphics custom build option. They weren't used anyway and this removes an extra 35.5KB from the build size.
1 parent 200a2a3 commit 084c453

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ can be controlled per-input mode.
299299
* New Color stub added for the custom build process. Contains just the bare minimum of functions that Phaser needs to work. Cuts file size from 48.7KB to 7.4KB. Note: Do not stub this out if using BitmapData objects.
300300
* New DOM stub added for the custom build process. Contains just the bare minimum of functions that Phaser needs to work. Cuts file size from 14.8KB to 2.4KB. Note: Do not stub this out if using the full Scale Manager.
301301
* New Scale Manager stub added. Removes all Scale Manager handling from Phaser! But saves 75KB in the process. If you know you don't need to scale the Phaser canvas, or are handling that externally, then you can safely stub it out in a custom build.
302+
* Added the PIXI.WebGLGraphics and PIXI.CanvasGraphics files to the Graphics custom build option. They weren't used anyway and this removes an extra 35.5KB from the build size.
302303

303304
### Bug Fixes
304305

tasks/manifests/graphics.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
[
22
"src/pixi/primitives/Graphics.js",
33
"src/pixi/primitives/GraphicsData.js",
4+
"src/pixi/renderers/webgl/utils/WebGLGraphics.js",
5+
"src/pixi/renderers/canvas/CanvasGraphics.js",
46
"src/gameobjects/Graphics.js"
57
]

0 commit comments

Comments
 (0)