css - Fonts are not rendered correctly in Release Mode, but is working on Debug Mode in ASP NET Webforms -
we able solve problem regarding rendering of fonts during release in vs2013.
the font urls in "app.css" , "style.css" fonts pointing location example "fonts/icomoon.eot" technically cannot find specific path based on directory browsing of iis.
we changed adding "/content/stylesheets/" of current font urls like"/content/stylesheets/fonts/icomoon.eot" and worked.
however still not understand why debug mode okay previous urls of our css files , fonts rendering fine.
can suggest fix? or fix of ours okay (manually editing font-urls inside css files)?
we have found better solution font issues.
the asp.net bundling source why different result between debug , release mode.
by default, if compilation on debug mode, bundling turned off while if on release mode, turned on.
to fix issue have turned off asp.net bundling while on release mode adding lines bundleconfig.cs.
bundletable.enableoptimizations = false;
what asp.net bundling creates virtual directory css , js files. problem cannot find path of urls (specifically fonts) inside css files.
but solution have tried is:
bundles.add(new stylebundle("~/bundles/layoutcss").include( "~/content/stylesheets/style.css", new cssrewriteurltransform() ) .include("~/content/stylesheets/app.css", new cssrewriteurltransform() ) .include("~/content/bower_components/slick/dist/slick.css"));
Comments
Post a Comment