React Template in ASP.Net Core 2.1 RRS feed

  • Question

  • User294227642 posted

    Hello -

    The new react template does not have Webpack and also its not using Typescript any more, why is that?

    Thanks, Shilpi

    Tuesday, May 8, 2018 4:07 PM

All replies

  • User-474980206 posted

    they follow react current best practices and use the react scripts.  create-react-app to create the template project and the react build scripts to do the build (the react build scripts use webpack under the covers). see:


    you can do an

       npm run eject

    to stop using the supplied scripts and take control yourself.

    if its development mode. the core template in startup has:

       spa.UseReactDevelopmentServer(npmScript: "start");

    this means your node test server is started and stopped when you run the core application. comment this out if you want to manually control the watcher.

    Thursday, May 10, 2018 3:19 PM