Skip to content

Expose Webpack's watchOptions.aggregateTimeout in angular-cli.json #8191

@d42ohpaz

Description

@d42ohpaz

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [x] feature request

Versions.

@angular/cli: 1.4.9
node: 8.7.0
os: darwin x64
@angular/animations: 4.4.6
@angular/cdk: 2.0.0-beta.12
@angular/common: 4.4.6
@angular/compiler: 4.4.6
@angular/core: 4.4.6
@angular/forms: 4.4.6
@angular/http: 4.4.6
@angular/material: 2.0.0-beta.12
@angular/platform-browser: 4.4.6
@angular/platform-browser-dynamic: 4.4.6
@angular/router: 4.4.6
@angular/cli: 1.4.9
@angular/compiler-cli: 4.4.6
typescript: 2.3.4

Repro steps.

ng serve

The log given by the failure.

N/A

Desired functionality.

In webpack, there is a watchOptions.aggregateTimeout setting that defines the time (in milliseconds) before initiating a browser reload. This allows multiple changes to one or more files to only trigger building once.

Mention any other details that might be useful.

In cli/tasks/build.ts, I see the entry point for watching the files is little more than a pass-through of the cli configuration into the webpack configuration.

TIA!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions