1 | {
|
2 | "$schema": "http://json-schema.org/draft-07/schema",
|
3 | "title": "Custom webpack dev server schema for Angular build facade",
|
4 | "description": "Dev server target options",
|
5 | "type": "object",
|
6 | "properties": {
|
7 | "browserTarget": {
|
8 | "type": "string",
|
9 | "description": "A browser builder target to serve in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
|
10 | "pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
|
11 | },
|
12 | "port": {
|
13 | "type": "number",
|
14 | "description": "Port to listen on.",
|
15 | "default": 4200
|
16 | },
|
17 | "host": {
|
18 | "type": "string",
|
19 | "description": "Host to listen on.",
|
20 | "default": "localhost"
|
21 | },
|
22 | "proxyConfig": {
|
23 | "type": "string",
|
24 | "description": "Proxy configuration file. For more information, see https://angular.io/guide/build#proxying-to-a-backend-server."
|
25 | },
|
26 | "ssl": {
|
27 | "type": "boolean",
|
28 | "description": "Serve using HTTPS.",
|
29 | "default": false
|
30 | },
|
31 | "sslKey": {
|
32 | "type": "string",
|
33 | "description": "SSL key to use for serving HTTPS."
|
34 | },
|
35 | "sslCert": {
|
36 | "type": "string",
|
37 | "description": "SSL certificate to use for serving HTTPS."
|
38 | },
|
39 | "headers": {
|
40 | "type": "object",
|
41 | "description": "Custom HTTP headers to be added to all responses.",
|
42 | "propertyNames": {
|
43 | "pattern": "^[-_A-Za-z0-9]+$"
|
44 | },
|
45 | "additionalProperties": {
|
46 | "type": "string"
|
47 | }
|
48 | },
|
49 | "open": {
|
50 | "type": "boolean",
|
51 | "description": "Opens the url in default browser.",
|
52 | "default": false,
|
53 | "alias": "o"
|
54 | },
|
55 | "verbose": {
|
56 | "type": "boolean",
|
57 | "description": "Adds more details to output logging."
|
58 | },
|
59 | "liveReload": {
|
60 | "type": "boolean",
|
61 | "description": "Whether to reload the page on change, using live-reload.",
|
62 | "default": true
|
63 | },
|
64 | "publicHost": {
|
65 | "type": "string",
|
66 | "description": "The URL that the browser client (or live-reload client, if enabled) should use to connect to the development server. Use for a complex dev server setup, such as one with reverse proxies."
|
67 | },
|
68 | "allowedHosts": {
|
69 | "type": "array",
|
70 | "description": "List of hosts that are allowed to access the dev server.",
|
71 | "default": [],
|
72 | "items": {
|
73 | "type": "string"
|
74 | }
|
75 | },
|
76 | "servePath": {
|
77 | "type": "string",
|
78 | "description": "The pathname where the application will be served."
|
79 | },
|
80 | "disableHostCheck": {
|
81 | "type": "boolean",
|
82 | "description": "Don't verify connected clients are part of allowed hosts.",
|
83 | "default": false
|
84 | },
|
85 | "hmr": {
|
86 | "type": "boolean",
|
87 | "description": "Enable hot module replacement.",
|
88 | "default": false
|
89 | },
|
90 | "watch": {
|
91 | "type": "boolean",
|
92 | "description": "Rebuild on change.",
|
93 | "default": true
|
94 | },
|
95 | "poll": {
|
96 | "type": "number",
|
97 | "description": "Enable and define the file watching poll time period in milliseconds."
|
98 | }
|
99 | },
|
100 | "additionalProperties": false,
|
101 | "required": [
|
102 | "browserTarget"
|
103 | ],
|
104 | "$id": "CustomWebpackDevServerSchema"
|
105 | } |
\ | No newline at end of file |