I have 4 files:
- a.css
- a.min.css
- b.css
- b.min.css
they are added to bundle in following way:
bundles.Add(new StyleBundle("~/Content/acss").Include("~/Content/a.css", "~/Content/b.css"));
When running application in debug all is rendered properly:
<link href="/Content/a.css" rel="stylesheet"/>
<link href="/Content/b.css" rel="stylesheet"/>
However when running in release I have it rendered in following way:
<link href="/Content/acss?v=mUdXE7_fXKjICzE_XteIB1Igy6TekX1QFh-BtY6fFUw1" rel="stylesheet"/>
And inside I'm founding:
/* Minification failed. Returning unminified contents. (24,708): run-time error CSS1030: Expected identifier, found '.'
So I have two questions:
- Why it is not working according to docs online? All information says that it chooses min file if available for release version?
- How to make it working according to documentation?