web optimization - Unable to minify css in asp.net mvc -


i trying minify css file using system.web.optimizations , won't work

var fontawsomebundle = new bundle("~/bundles/css/font-awsome", new cssminify())       .include("~/content/packages/font-awesome/css/font-awesome-{version}.css", new cssrewriteurltransform()); 
  • i have run site optimizations enabled , debug=false
  • there no pre-minified file in same location
  • .net 4.5, iis express
  • system.web.optimizations 1.1.0.0, webgrease 1.6.5135.21930. tried updating webgrease latest, didn't work
  • i not getting minification errors in bundle file, unminified version of file

tried version well. fontawsomebundle.transforms.add(new cssminify());

you should use stylebundle .css , scriptbundle .js.

var fontawsomebundle = new stylebundle("~/bundles/css/font-awsome", new cssminify())       .include("~/content/packages/font-awesome/css/font-awesome-{version}.css", new cssrewriteurltransform()); 

Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -