-
-
Notifications
You must be signed in to change notification settings - Fork 58
/
server.config.default.ts
51 lines (49 loc) Β· 1.67 KB
/
server.config.default.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import browserSync from 'browser-sync';
export interface ServerConfig {
host?: string;
proxy: string;
port: number;
ui: browserSync.UIOptions;
notify: boolean;
open: boolean;
ghostMode: browserSync.Options['ghostMode'];
// tslint:disable-next-line:no-any
bsOverride?: { [x: string]: any };
distPublicPath?: string;
}
export const serverConfigDefault: ServerConfig = {
// Your LAN IP or host where you would want the live server
// Override this if you know your correct external IP (LAN)
// Otherwise, the system will always use localhost and will not
// work for external IP.
// This will also create some issues with file watching because for
// some reason, service-worker doesn't work on localhost?
// https://github.com/BrowserSync/browser-sync/issues/1295
// So it is recommended to change this to your LAN IP.
// If you intend to access it from your LAN (probably do?)
// If you keep null, then wpackio-scripts will try to determine your LAN IP
// on it's own, which might not always be satisfying.
host: undefined,
// Your WordPress development server address
// This is super important
proxy: 'http://localhost',
// PORT on your localhost where you would want live server to hook
port: 3000,
// UI passed directly to browsersync
ui: {
port: 3001,
},
// Whether to show the "BrowserSync Connected"
notify: false,
// Open the local URL, set to false to disable
open: true,
// BrowserSync ghostMode, set to false to completely disable
ghostMode: {
clicks: true,
scroll: true,
forms: true,
},
// Override system calculated public path of the `dist` directory
// This must have forward slash, otherwise it will not work.
distPublicPath: undefined,
};