angular-cli: ng serve update very slow

After updating to the latest version of angular-cli compilation time is very slow

Build successful - 36925ms.
Slowest Trees                                 | Total
----------------------------------------------+---------------------
DiffingSWManifest                             | 30480ms
Funnel                                        | 4331ms

Slowest Trees (cumulative)                    | Total (avg)
----------------------------------------------+---------------------
DiffingSWManifest (1)                         | 30480ms
Funnel (8)                                    | 4966ms (620 ms)

What will be the reason?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 4
  • Comments: 26 (10 by maintainers)

Most upvoted comments

CLI Compilation is really slow. It completely freezes my computer. Here are the details about my environment: angular-cli: 1.0.0-beta.8 node: 6.2.1 os: win32 x64 Windows 10

I dont know why this issue is closed. The build process is decreasing angular development a lot… in my company we are like 6 developers who most of the time wait on the compiler all day long

I’m using the webpack version, but it’s still super slow on updating.

Experimented with https://github.com/AngularClass/angular2-webpack-starter. image

But angular cli at start image

When file .ts chenged image

angular-cli: 1.0.0-beta.19-3
node: 6.9.1
os: win32 ia32

Mac OS X 10.11.4

Extremly slow on windows, how can one develop in this way:

776ms building modules
13ms sealing
1ms optimizing
0ms basic module optimization
250ms module optimization
3ms advanced module optimization
29ms basic chunk optimization
1ms chunk optimization
0ms advanced chunk optimization
118ms module and chunk tree optimization
275ms module reviving
4ms module order optimization
7ms module id optimization
11ms chunk reviving
2ms chunk order optimization
31ms chunk id optimization
85ms hashing
2ms module assets processing
111ms chunk assets processing
6ms additional chunk assets processing
0ms recording
0ms additional asset processing
2658ms chunk asset optimization
701ms asset optimization
79ms emitting
Hash: abc98f33c0520c911e34
Version: webpack 2.1.0-beta.25
Time: 7929ms
           Asset     Size  Chunks             Chunk Names
  main.bundle.js  3.99 MB    0, 2  [emitted]  main
styles.bundle.js  10.2 kB    1, 2             styles
       inline.js  5.53 kB       2             inline
      styles.map    14 kB    1, 2             styles
      inline.map  5.59 kB       2             inline
        main.map  4.22 MB    0, 2  [emitted]  main
Child html-webpack-plugin for "index.html":
         Asset     Size  Chunks       Chunk Names
    index.html  3.42 kB       0
webpack: bundle is now VALID.

The webpack branch fixes this. See https://github.com/angular/angular-cli#webpack-preview-release-update for instructions on how to update.