O'Reilly logo

Continuous Integration, Delivery, and Deployment by Sander Rossel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Running tasks

Just because we are now working in C# it does not mean we do not have any frontend worries anymore. We still need to minify, bundle, Browserify, and many more. We can handle minification and bundling in .NET. For Browserify, we will need Gulp again. First, take a look at the bundleconfig.json file. It contains some bundling and minification information that is handled by .NET:

// Configure bundling and minification for the project.// More info at https://go.microsoft.com/fwlink/?LinkId=808241[   {      "outputFileName": "wwwroot/css/site.min.css",      // An array of relative input file paths. Globbing patterns supported      "inputFiles": [         "wwwroot/css/site.css"      ]   },   [...]]

To get this to work, we first need to install the BundlerMinifier.Core ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required