Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
onlyann opened this issue Mar 8, 2016 · 7 comments
Closed

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

onlyann opened this issue Mar 8, 2016 · 7 comments

Comments

@onlyann
Copy link

onlyann commented Mar 8, 2016

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
@hollanderbart
Copy link

could be related to: #372

@fxck
Copy link

fxck commented Mar 8, 2016

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

@PatrickJS
Copy link
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

@sumigoma
Copy link

sumigoma commented Mar 9, 2016

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

@PatrickJS
Copy link
Owner

@sumigoma ya I might

@onlyann
Copy link
Author

onlyann commented Mar 9, 2016

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

@avgalon
Copy link

avgalon commented Mar 1, 2017

+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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants