Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Index action method in HomeController.cs
public IActionResult Index()
{
const string JAVASCRIPT_KEY = "js";
JObject json = WebpackHelper.GetWebpackAssetsJson(_applicationBasePath);
ViewBag.VendorScripts = json.SelectToken("vendor").Value<string>(JAVASCRIPT_KEY);
ViewBag.AppScripts = json.SelectToken("app").Value<string>(JAVASCRIPT_KEY);
return View();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.