refactor: refork tail module
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import gulp from "gulp";
|
||||
import webserver from "gulp-webserver";
|
||||
import connect from "gulp-connect";
|
||||
import { Config } from "../../../core/config";
|
||||
import { Platform } from "../../../core/type";
|
||||
import { Runner } from "../../core/runner";
|
||||
@@ -10,15 +9,12 @@ export class Html5Runner extends Runner {
|
||||
}
|
||||
|
||||
call() {
|
||||
return gulp.src(this.targetPath).pipe(
|
||||
webserver({
|
||||
// TODO: config?
|
||||
host: "0.0.0.0",
|
||||
port: 3000,
|
||||
open: true,
|
||||
fallback: "index.html",
|
||||
}),
|
||||
);
|
||||
return connect.server({
|
||||
root: this.targetPath,
|
||||
host: "0.0.0.0",
|
||||
port: 3000,
|
||||
fallback: "index.html",
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user