Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): disable dev-server live-reload wh…
Browse files Browse the repository at this point in the history
…en using protoactor

LIve-reload is not needed when using protoactor because watch mode is always disabled.

(cherry picked from commit 22d836f)
  • Loading branch information
alan-agius4 committed Oct 16, 2020
1 parent a5e856f commit 29387b5
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -14,9 +14,11 @@ import {
import { JsonObject, tags } from '@angular-devkit/core';
import { resolve } from 'path';
import * as url from 'url';
import { DevServerBuilderOptions } from '../dev-server/index';
import { runModuleAsObservableFork } from '../utils';
import { Schema as ProtractorBuilderOptions } from './schema';


interface JasmineNodeOpts {
jasmineNodeOpts: {
grep?: string;
Expand Down Expand Up @@ -105,7 +107,11 @@ export async function execute(
const target = targetFromTargetString(options.devServerTarget);
const serverOptions = await context.getTargetOptions(target);

const overrides: Record<string, string | number | boolean> = { watch: false };
const overrides = {
watch: false,
liveReload: false,
} as DevServerBuilderOptions;

if (options.host !== undefined) {
overrides.host = options.host;
} else if (typeof serverOptions.host === 'string') {
Expand Down

0 comments on commit 29387b5

Please sign in to comment.