AjaxMin stops after @media in css

94 views Asked by At

I added a step in my build task in VS2010 to minify my css and jss with AjaxMin. However the minify messes up the css because when it reaches an @media tag it just stops. There are no errors in the build output.

basically at this point in the css:

.dropdown-submenu > ul {margin-left:20px;}

@media (min-width:768px) {
.blurb {margin:0 25px 25px 25px;}
}

in minifies to

.dropdown-submenu>ul{margin-left:20px}@media

and then is done. there is a lot more css after that @media tag, but looks like the minifier just stops.

This is my first time using the minifier, not sure if something is missing, or what could be happening? Thanks

1

There are 1 answers

3
StefanBob On

What version of ajax minifier are you using? Seems this problem was fixed in version 5.7 https://ajaxmin.codeplex.com/workitem/20611