The baseDir parameter also ca be set multiple directories

This commit is contained in:
y-kurami 2015-04-18 01:52:24 +09:00
parent 52fa2b9ce3
commit 52cd14c560
2 changed files with 10 additions and 3 deletions

View File

@ -7,6 +7,13 @@ browserSync({
}
});
// multiple base directory
browserSync({
server: {
baseDir: ["app", "dist"]
}
});
browserSync({
proxy: "yourlocal.dev"
});
@ -62,4 +69,4 @@ evt.on("init", function () {
console.log("BrowserSync is running!");
});
browserSync(config);
browserSync(config);

View File

@ -65,7 +65,7 @@ declare module "browser-sync" {
}
interface ServerOptions {
baseDir?: string;
baseDir?: string | string[];
directory?: boolean;
index?: string;
routes?: {[path: string]: string};
@ -95,4 +95,4 @@ declare module "browser-sync" {
}
export = BrowserSync;
}
}