[haxe] add dom flag support

This commit is contained in:
2019-02-25 17:37:17 +03:00
parent 0694b624be
commit 0ee8ed8cd8

View File

@@ -89,6 +89,9 @@ class Haxe extends Sdk {
fs.writeFileSync(path.resolve(buildDir, 'project.xml'), project);
const args = ['-cwd', buildDir, 'run', 'openfl', command, platform];
if (config.flags.dom) {
args.push('-Ddom');
}
if (debug) {
args.push('-debug');
}
@@ -195,4 +198,4 @@ Haxe.VERSION_3_4_7 = '3.4.7';
Haxe.VERSION_3 = Haxe.VERSION_3_4_7;
Haxe.VERSION = Haxe.VERSION_3;
module.exports = Haxe;
module.exports = Haxe;