i used mvc4 and when i change
BundleTable.EnableOptimizations = true;
in BundleConfig.cs file my image can not load and failed.
location of my image on my solution:
themes/default/Profile/images/abc.png
in my BundleConfig:
bundles.Add(new StyleBundle("~/Content/profile/PRA")
.Include("~/Content/themes/default/profile/mycss.css"));
my css :
.sampleback{
background-image: url('images/abc.png');
}
if i want to use BundleTable.EnableOptimizations = true; i must my css class to until it works:
.sampleback{
background-image:url('../themes/default/Profile/images/abc.png');
}
is it a bug?or I'm on a wrong way?