10 07 2017
ASP.NET Core 2: New single page application templates
With ASP.NET Core 2.0 Preview 2 there are new web application templates available for Single Page Applications (SPA). Currently Angular, React.js and React.js + Redux are supported. This blog post gives short overview of new templates and related sample application.
New SPA templates
When creating new ASP.NET Core application using Visual Studio 2017 Preview 3 there are now three new templates available for SPA-s as shown on screenshot below.
TypeScript and webpack
Another new thing is support for webpack module bundler. Webpack is added to project as Node.js module. It is not related to Task Runner. Webpack is run as part of build. It takes care of bundling and minification too.
webpack.config.js is configuration file for webpack and this is the place where all bundling and minifying rules are defined. You can add your own rules there.