Skip to content

Commit f7f6eed

Browse files
committed
fix(@angular-devkit/build-angular): disable dev-server live-reload when using protoactor
LIve-reload is not needed when using protoactor because watch mode is always disabled.
1 parent 247b87d commit f7f6eed

File tree

1 file changed

+7
-1
lines changed
  • packages/angular_devkit/build_angular/src/protractor

1 file changed

+7
-1
lines changed

packages/angular_devkit/build_angular/src/protractor/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ import {
1414
import { JsonObject, tags } from '@angular-devkit/core';
1515
import { resolve } from 'path';
1616
import * as url from 'url';
17+
import { DevServerBuilderOptions } from '../dev-server/index';
1718
import { runModuleAsObservableFork } from '../utils';
1819
import { Schema as ProtractorBuilderOptions } from './schema';
1920

21+
2022
interface JasmineNodeOpts {
2123
jasmineNodeOpts: {
2224
grep?: string;
@@ -105,7 +107,11 @@ export async function execute(
105107
const target = targetFromTargetString(options.devServerTarget);
106108
const serverOptions = await context.getTargetOptions(target);
107109

108-
const overrides: Record<string, string | number | boolean> = { watch: false };
110+
const overrides = {
111+
watch: false,
112+
liveReload: false,
113+
} as DevServerBuilderOptions;
114+
109115
if (options.host !== undefined) {
110116
overrides.host = options.host;
111117
} else if (typeof serverOptions.host === 'string') {

0 commit comments

Comments
 (0)