Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export interface DevServerBuilderOptions {
hmrWarning: boolean;
servePathDefaultWarning: boolean;

// These options come from the browser builder and are provided here for convenience.
optimization?: boolean;
aot?: boolean;
sourceMap?: boolean;
Expand All @@ -60,6 +61,7 @@ export interface DevServerBuilderOptions {
commonChunk?: boolean;
baseHref?: string;
progress?: boolean;
poll?: number;
}

interface WebpackDevServerConfigurationOptions {
Expand Down Expand Up @@ -450,6 +452,7 @@ export class DevServerBuilder implements Builder<DevServerBuilderOptions> {
...(options.commonChunk !== undefined ? { commonChunk: options.commonChunk } : {}),
...(options.baseHref !== undefined ? { baseHref: options.baseHref } : {}),
...(options.progress !== undefined ? { progress: options.progress } : {}),
...(options.poll !== undefined ? { poll: options.poll } : {}),

...builderConfig.options,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@
"progress": {
"type": "boolean",
"description": "Log progress to the console while building."
},
"poll": {
"type": "number",
"description": "Enable and define the file watching poll time period in milliseconds."
}
},
"additionalProperties": false,
Expand Down