colinbate / ng2-brunch

Basic Brunch skeleton for Angular 2 with TypeScript.
40 stars 19 forks source link

brunch watch -s mode doesn't like outside template files #14

Open allenwyma opened 7 years ago

allenwyma commented 7 years ago

I tried using your methodology of using require('./path_of_template.html'), but sometimes brunch doesn't like it, and sometimes angular doesn't like when i update the template file, then save. The autoreload becomes unhappy:

01 Nov 17:11:07 - info: compiling
01 Nov 17:11:11 - info: compiling.
01 Nov 17:11:15 - info: compiling..
01 Nov 17:11:19 - info: compiling...
01 Nov 17:11:23 - info: compiling
01 Nov 17:11:27 - info: compiling.
01 Nov 17:11:31 - info: compiling..
01 Nov 17:11:35 - info: still compiling...
01 Nov 17:11:39 - info: compiling
01 Nov 17:11:43 - info: compiling.
01 Nov 17:11:47 - info: compiling..
01 Nov 17:11:51 - info: compiling...
01 Nov 17:11:55 - info: compiling
01 Nov 17:11:59 - info: compiling.
01 Nov 17:12:03 - info: compiling..
01 Nov 17:12:07 - info: compiling...
01 Nov 17:12:11 - info: compiling
01 Nov 17:12:15 - info: compiling.
01 Nov 17:12:19 - info: compiling..
01 Nov 17:12:23 - info: compiling...
01 Nov 17:12:27 - info: compiling
01 Nov 17:12:31 - info: compiling.
01 Nov 17:12:35 - info: compiling..
01 Nov 17:12:39 - info: compiling...
01 Nov 17:12:43 - info: compiling
01 Nov 17:12:47 - info: compiling.

But it will go back to normal after killing and restarting the server.

colinbate commented 7 years ago

Interesting. I've not seen this, but I'll ask my colleagues if they have. Is it just the template files that are giving you trouble? Is there a difference between brunch not being happy and Angular not being happy?

allenwyma commented 7 years ago

angular files are generally okay, just the template files don't like to auto refresh.