Make sure you have installed the latest typescript nuget package because we will need it later to work with angular and visual studio 2017. After creating you can take the empty template like this: In this case we name it “Angular2WebpackStarter”. I hope you like reading it as much as I liked writing it.Īnd create a new project. For Damien and me this was a bit confusing in the beginning so this is the guide how we started actually. I had this topic already with my colleague DamienBod here and a StarterTemplate here (which is using system.js as bootstrapper for your application), but this post is more to show how we get there and which steps you should take to get things going. If you read this until the end you will have a picture how to enable webpack and webpack-dev-server with npm and how to use webpack to bundle your angular application and inject files into index.html for your web application. See also my latest article Angular Ahead Of Time (AoT) compilation, lazy loading and treeshaking with webpack With this blog post I want to show an example of how to set up Angular and Webpack in Visual Studio with ASP.NET Core ready for dev and production builds.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |