This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Description
Is there a way to run webpack middleware run synchronously and complete its action before next middleware runs.
Problem I am having is that page renders first and I am dynamically reading main.js file from wwwroot folder inside angular 2/webpack based project. e.g this is the dynamic main.js file reference:
<script src="~/dist/@ViewBag.HashedMain" asp-append-version="true"></script>
But the file isn't created in wwwroot folder yet. After few seconds, file is created and refreshing the page picks that file up.