Webpack not auto-building while app is running
Steps to reproduce
- Create new project with
dotnet new angular - Restore packages and install dependencies with
dotnet restoreandnpm install - Run the project with
dotnet run - Make a change to any component. For example, append
HELLO, WORLDto the home.component.html file - Save the change. Notice the browser does not auto-refresh
- Refresh the browser - the change is NOT applied
- Stop the project the project
- Run the project again with
dotnet run- notice the change is STILL NOT applied - Stop the project again
- Run
webpack - Run the project with
dotnet run- VIOLA! Now the change is visible
Expected behavior
I expect to be able to make a change and, upon saving, see the change reflected in my browser.
Actual behavior
No changes can be seen until the webpack command is ran at the command line.
Environment data
dotnet --info output:
.NET Command Line Tools (1.0.0)
Product Information: Version: 1.0.0 Commit SHA-1 hash: e53429feb4
Runtime Environment: OS Name: Windows OS Version: 10.0.14393 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\1.0.0
@mlorbetske do you know where this bug belongs?
@SteveSandersonMS would know
@mlorbetske @SteveSandersonMS Can you guys help me find the right repo for this issue?
@Conner05: It sounds like you're just running in production mode, whereas you have to be in development mode for HMR and Webpack Dev Middleware to be active. If you switch to dev mode and still get this issue, could you please re-file it in the JavaScriptServices repo?
I'll mark this closed because even if it is a bug we'd prefer it to move to the JavaScriptServices repo. Hope that's OK!