I'm using Asp.Net's Bundling and Minification feature and I have a bundle of CSS files in a staging environment where debug is set to false to emulate production. For some time now I've had an error in asp.net's minification function in both staging and production environments:
Minification failed. Returning unminified contents.
(11479,6713): run-time error CSS1030: Expected identifier, found '['
(11479,6718): run-time error CSS1031: Expected selector, found '='
(11479,6718): run-time error CSS1025: Expected comma or open brace, found '='
This is what I see on Chrome's DevTools. I fixed the issues and tested it locally with debug turned off. This message went away and the files were successfully minified. However when I publish the css files to the staging server I still get the error. When I look at the CSS, prettyfied by Devtools, I notices that my changes are not there.
I've checked the usual suspects: wrong file published, published to wrong server and none of it is the case. According to this post the bundle is supposed to update the cache whenever there are changes to the files. But this isn't happening for some reason. Any ideas?
Another weird thing is that when I remove the offending file from the bundle, it is still served up by the minifier.