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