Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
2. Run npm run build before building the .NET project.
MSBuild runs NpmInstall before this task because of the DependsOnTargets attribute.
-->
<Target Name="NpmRunBuild" DependsOnTargets="NpmInstall" BeforeTargets="BeforeBuild" Condition="'$(Configuration)' == 'Debug' and '$(NpmUnavailable)' != 'true' ">
<Target Name="NpmRunBuild" DependsOnTargets="NpmInstall" Condition="'$(Configuration)' == 'Debug' and '$(NpmUnavailable)' != 'true' ">
<Exec Command="npm run build" />
</Target>

Expand Down
10 changes: 10 additions & 0 deletions playground/BrowserTelemetry/BrowserTelemetry.Web/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Updating web assets

When changes to the `./package.json` or `./Scripts/index.js` are made the `./wwwwroot/scripts/bundle.js` file needs to be updated by running the following command:

```console
dotnet build /t:NpmRunBuild
```

This will install the required npm packages and run the webpack command generating this file.
Note that the `package-lock.json`