This problem goes beyond the scope of sass, because it is just a preliminary processor and has no idea about the browser. In addition, the external conditions of css determine the conditions for different browsers.
You can do this by adding the ie8 class in html, like html5, and then use the css rule to activate the font.
body {
@include font-face("myicons", "myicons", $weight: normal, $style: normal, $asset-pipeline: false);
.ie8 & {
@include font-face("myicons", "myicons", $weight: normal, $style: normal, $asset-pipeline: true);
}
}
and in html file
<html>
source
share