When the CSS file for media='print' contains the @page directive,
.myreceipt {
@page {
visibility: hidden;
margin: 0 15px;
}
@page {
height: auto;
}
}
The ASP.NET MVC4 built-in minification tool does not minify it correctly. Upon examination of the source, an error is revealed:
(2390,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '@page'
Is there a way to properly minify CSS that includes the @page directive in an ASP.NET/Mono MVC4 application?