gulp-core-build-serve
is a plugin for gulp-core-build
which introduces the ability to serve files from a directory using gulp-connect
and express
.
interface IServeTaskConfig {
api?: {
port: number,
entryPath: string
};
initialPage: string;
port: number;
}
Usage (and defaults):
build.webpack.setConfig({
api: null,
initialPage: '/index.html',
port: 4321
}
);