-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Webpack is not watching my changes in a new directory. #857
Comments
Post more of your typescript code as well as full error details for us to diagnose. It's not enough info to give an accurate answer yet. I was able to add a new services directory with no problem. |
Here is some more code: @Component({
selector: 'test',
providers: [
],
directives: [],
pipes: [],
template: `
<div class="abc">
abc
</div>
`,
styles: [
.abc {
width: '20%',
margin: '10px'
}
]
}) I worte the styles in a wrong way, and here are the errors.
I correct it by changing the style to
Webpack pickup my change and reload. But the same errors appear again. |
I'm submitting a question about the decisions made in the repository
I create a new directory called
services
under app:Added to index.ts
Every time I make a change in some-service.ts, webpack-dev-server will restart, but the changes will not get picked up.
Only compilation errors not updated on change. Like:
I have to manually shutdown and restart dev-server to recompile.
The text was updated successfully, but these errors were encountered: