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

Compilation is too slow during development #29

Open
csegyud opened this issue Feb 17, 2017 · 1 comment
Open

Compilation is too slow during development #29

csegyud opened this issue Feb 17, 2017 · 1 comment

Comments

@csegyud
Copy link

csegyud commented Feb 17, 2017

Installed product versions

  • Visual Studio: Community 2015 Upd 3 (4.6.01055)
  • This extension: [example 1.1.37]
  • dotnet: 1.0.0-preview2-1-003177

Description

Although I'm very impressed by the whole template pack, I feel the build process way too slow. I believe it is because it pre-renders on the server side every time I start the project. Even if I'm in Debug mode.

In Publish mode when we compile and bundle everything, it is absolutely OK, but the development slows down dramatically.

Steps to recreate

  1. Load the default project in VS
  2. and press F5
  3. modify s.g. in the source
  4. reload the browser

Current behavior

The changes are not propagated to the client by simply reloading the page in the browser.
You need to restart the project in VS (Ctrl-Shift-F5) to see the changes in the browser.
And this step is painfully slow. (takes 1 minute or more)

Expected behavior

During the development it should work much faster (10-15 seconds is OK). When publishing, it's OK to wait more since it has a lot of tasks to compile and render the site for production use.

Is it possible to turn off server-side pre-rendering for the development? And then turn it back for publishing? Is there a way to see my changes in the browser without restarting the project every time?

Thx.

[Update] - The changes ARE propagated automatically to the browser 1 or 2 times but after that I have to restart the project. I mean changes made on component template and component css only, not C# code or such.

@ghost
Copy link

ghost commented Mar 29, 2017

Just remove the attribute from the index page to turn off server side prerendering.

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

1 participant