Files
gulp-haxetool/src/project/impl/runner/html5.ts
T
2026-10-22 12:04:40 +03:00

22 lines
512 B
TypeScript

import connect from "gulp-connect";
import { Config } from "../../../core/config";
import { Platform } from "../../../core/type";
import { Runner } from "../../core/runner";
export class Html5Runner extends Runner {
constructor(config: Config, debug: boolean) {
super(config, Platform.HTML5, debug);
}
call() {
return connect.server({
root: this.targetPath,
host: "0.0.0.0",
port: 3000,
fallback: "index.html",
});
}
}
Runner.register(Platform.HTML5, Html5Runner);