Skip to content

Instantly share code, notes, and snippets.

View chamberlainpi's full-sized avatar

Pierre Chamberlain chamberlainpi

View GitHub Profile
@chamberlainpi
chamberlainpi / MacroModuleFixer.hx
Last active August 29, 2015 14:12
Macro for removing (comment-out) specific modules that are automatically created by Haxe compiler in JS
package macros;
import sys.FileSystem;
import sys.io.File;
/**
* @author Pierre Chamberlain
* @usage In a compile.hxml file, you can call this command like so:
*
* --macro macros.MacroModuleFixer.run("yourFile.js", "MyModule")
*