Option to make webpack middleware to be synchronous? #1119

Closed
opened 2025-08-09 17:18:57 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @asadsahi on 1/11/2017

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.

*Originally created by @asadsahi on 1/11/2017* 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1119
No description provided.