当我创建一个新的针对2.1 RC1的ASP.NET MVC Core时,它不会创建用于 bundle 和缩小的bundleconfig.json文件。如果我的目标是2.0,则会创建此文件。
这是一个示例,该解决方案包含一个针对2.0的新项目和另一个针对2.1的项目:
有什么东西取代了内置的 bundle 和缩小功能,还是这只是RC1中的错误?
最佳答案
从2.1模板中删除了bundleconfig.json,因为它依赖于Microsoft未创建或不支持的工具。参见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.
ASP.NET Core团队已将bundleconfig替换为“libman”。右键单击项目->添加->客户端库,然后添加所需的包
关于.net-core - 是否已在ASP.NET Core MVC 2.1中替换了bundleconfig.json?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50419033/