Skip to content

Is the development experience supposed to be that slow? #396

Closed

Description

@onlyann

Let me first say thanks for providing a starter kit for angular 2 and webpack.
The good part is that running npm install and npm run server succesfully runs the sample application.

The less so good is that it takes more than 10 seconds to reflect a change on a file (I changed home.html). Not sure if that is supposed to be that slow. It tried without the hot module reload for similar results.

Beside changing the one file and updating TypeScript package version to 1.8.7, I left the rest unchanged

My environment is Windows and the CPU is an Intel Core i5-4300U 1.9Ghz.

Here's an extract of the webpack-dev-server output :

webpack: bundle is now VALID.
webpack: bundle is now INVALID.
810ms build modules
76ms seal
196ms optimize
24ms hashing
40ms create chunk assets
19ms additional chunk assets
8724ms optimize chunk assets
236ms optimize assets
98ms emit
Hash: a23b9391ca22cca137f2
Version: webpack 1.12.14

Activity

  1. hollanderbart commented on Mar 8, 2016

    @hollanderbart

    could be related to: #372

  2. fxck commented on Mar 8, 2016

    @fxck

    clean install of angular2-webpack-starter takes about 5 secs to build for me, but it's getting increasingly slow with more stuff you add, now with a couple of components, services and routes I'm at about 40 seconds or crash, as described in #372

  3. PatrickJS commented on Mar 9, 2016

    @PatrickJS
    Owner

    Thanks for the issue. Can update to latest and reopen if you still have this issue. The problem was ts-loader so I switched to awesome-typescript-loader so I'm closing this now

  4. sumigoma commented on Mar 9, 2016

    @sumigoma

    @gdi2290 Are you going to restore the changes involving the default webpack config file?

  5. PatrickJS commented on Mar 9, 2016

    @PatrickJS
    Owner

    @sumigoma ya I might

  6. onlyann commented on Mar 9, 2016

    @onlyann
    Author

    Modifying home.html or home.ts still takes more than 10 seconds to reflect the changes.

    559ms build modules
    28ms seal
     73% optimize[default] Checking started in a separate process...
    [default] Ok, 0.029 sec.
    281ms optimize
    31ms hashing
    132ms create chunk assets
    54ms additional chunk assets
    9822ms optimize chunk assets
    250ms optimize assets
    85ms emit
    Hash: 5621345838a01a1b0215
    Version: webpack 1.12.14
    
  7. avgalon commented on Mar 1, 2017

    @avgalon

    +1 on that
    I have the latest....
    when running $ npm run server:dev:hmr i wait almost a minute.....and only 40% of the project is ready.
    please advise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions