Advertisement
Guest User

Untitled

a guest
Jun 19th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. StartUp.cs
  2.  
  3. ConfigureServices
  4.  
  5. services.AddMvc();
  6.  
  7. services.AddReact();
  8. services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
  9. services.AddNodeServices();
  10.  
  11. services.Configure<AppSettings>(Configuration.GetSection("AppSettings"));
  12.  
  13. Configure
  14.  
  15. // Initialise ReactJS.NET. Must be before static files.
  16. app.UseReact(config =>
  17. {
  18. config
  19. .SetLoadBabel(false)
  20. .AddScriptWithoutTransform("~/build/server.bundle.js");
  21. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement