Has something replaced bundleconfig.json in ASP.NET Core MVC 2.1?

Josh picture Josh · May 18, 2018 · Viewed 12.2k times · Source

When I create a new ASP.NET MVC Core targeting 2.1 RC1, it doesn't create the bundleconfig.json file which is used for bundling and minification. This file is created if I target 2.0.

Here is a example, the solution contains a new project targeting 2.0 and another targeting 2.1: enter image description here

Has something replaced the builtin bundling and minification, or is this just a bug in RC1?

Answer

natemcmaster picture natemcmaster · May 26, 2018

bundleconfig.json was removed from the 2.1 templates because it relied on a tool not created or supported by Microsoft. See https://github.com/aspnet/templating/issues/326.

This file [bundleconfig.json] is for configuring the various incantations of the BundlerMinifier tool, which isn't actually shipped in the templates, or supported by Microsoft.

The ASP.NET Core team has replaced bundleconfig with "libman". Rightclick the project --> Add --> Client Side Library and add the packages you need