mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
The baseDir parameter also ca be set multiple directories
This commit is contained in:
parent
52fa2b9ce3
commit
52cd14c560
@ -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);
|
||||
|
||||
4
browser-sync/browser-sync.d.ts
vendored
4
browser-sync/browser-sync.d.ts
vendored
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user