JavaScriptServices icon indicating copy to clipboard operation
JavaScriptServices copied to clipboard

Question: Older template with webpack vs newer template with angular-cli

Open Vx2gas opened this issue 8 years ago • 1 comments

@SteveSandersonMS I would love some direction and feedback on the templating. It was first here and the one published currently that used the webpack middleware, and has a webpack.config.js and the webpack vendor files.

However, it seems there is a newer one https://github.com/aspnet/templating/tree/dev/src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/Angular-CSharp that uses the angular-cli.

Going forward, what are the pros and cons of using the angular-cli middleware template vs the webpack middleware template?

Thanks! and btw.. looking good on Blazor!

Vx2gas avatar May 01 '18 18:05 Vx2gas

The newer SPA templates (based on Angular CLI and create-react-app) entirely replace the older ones. We've moved to the new structure because of so many customer requests saying it's preferable to work within the de-facto standard project structure and build system for their chosen client-side SPA framework.

We continue to support the underlying .NET packages used by the earlier templates, so anyone who's already working on an app created from that template should have no reason to change. They are not deprecated - they are still part of the shipping product. But if creating a new project we recommend using the new templates because it produces a structure that most developers prefer.

SteveSandersonMS avatar May 17 '18 13:05 SteveSandersonMS