Gulping all your client-side code in ASP.NET Core

I was looking for a convenient way to publish my ASP.NET Core application, but soon I saw that it wasn't that easy. The worst problem is that
   dnu publish
will publish all files in the wwwroot folder with no possibility to filter these files because you can't publishExclude files and folders in the wwwroot folder.

So I came up with a solution which keeps all files out of the wwwroot directory, using gulp to compile Typescript and Sass files and copy css and javascript during development and preparing them for production.

I created a GitHub repository with a working example which you can customize to fit your needs. I added an detailed readme with all informations you need which will be updated too if I add new task or improve the existing ones.

Comments

Popular posts from this blog

Debugging Lua scripts in VS Code using MoonSharp

Testing the response body of middleware in ASP.NET Core

Creating a basic MVC 6 web application with Entity Framework 7 and xUnit - Part 2