Skip to content

Incremental builds are slow #2342

@csvan

Description

@csvan
  • I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests.
Item Version
generator-angular-fullstack 4.1
Node 6.9.1
npm 3.10.8
Operating System Windows 7 Enterprise
Item Answer
Transpiler TypeScript
Markup HTML
CSS LESS
Router ui-router
Client Tests Jasmine
DB None
Auth N

While I understand that incremental build time (e.g. during gulp serve) is not fixed, it seems to scale pretty poorly with project size.

In our case, we work on a mid-sized project (approx 40k+ lines JS, 2k+ LESS, not including deps). Changing a source triggers an incremental builds which takes 5-10 seconds, and really hits the CPU hard (I have a Dell M4800, never had the fans run so high before).

I am not a webpack guru, but is there no way to tweak the chunk system to make this more efficient? Our modules are relatively small (about 500-1k JS each). Right now it feels as if the entire code base is being recompiled rather than the part which changed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions