From 084c453fcc8a7b4dc94d5e5f4bc843e8634f4979 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Tue, 29 Sep 2015 16:15:07 +0100 Subject: [PATCH] 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. --- README.md | 1 + tasks/manifests/graphics.json | 2 ++ 2 files changed, 3 insertions(+) diff --git a/README.md b/README.md index 5ad87f6f4..40ab2a6cb 100644 --- a/README.md +++ b/README.md @@ -299,6 +299,7 @@ can be controlled per-input mode. * 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. * 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. * 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. +* 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. ### Bug Fixes diff --git a/tasks/manifests/graphics.json b/tasks/manifests/graphics.json index e87f5e00c..f93c249ca 100644 --- a/tasks/manifests/graphics.json +++ b/tasks/manifests/graphics.json @@ -1,5 +1,7 @@ [ "src/pixi/primitives/Graphics.js", "src/pixi/primitives/GraphicsData.js", + "src/pixi/renderers/webgl/utils/WebGLGraphics.js", + "src/pixi/renderers/canvas/CanvasGraphics.js", "src/gameobjects/Graphics.js" ]