Hi all, I’ve been actively developing an application throughout the year. I have a small SCSS file compiling classes for my font awesome icon classes.
This has been working just fine up until this week. I just added a few icon names and realized that the asset pipeline is no longer compiling this. Restarting the rails server and restarting the browser doesn’t work.
I don’t see any errors anywhere and gem versions of sassc-rails, sassc etc have not changed…
Any suggestions?
$fa5-icons: (
'regular': (
'sticky-note',
'circle',
'question-circle',
'arrow-alt-circle-down',
'file', 'file-alt', 'file-image', 'file-audio', 'file-video', 'file-pdf',
'trash-alt',
'check-circle',
'clock'
),
'solid': (
'seedling',
'sign-in-alt',
'sign-out-alt',
'link',
'external-link-alt',
'book',
'poll',
'tags',
'edit',
'plus',
'grip-lines',
'grip-horizontal',
'play', 'pause',
'video', 'volume-down',
'user-circle', 'user-plus',
'cloud', 'sun', 'umbrella',
'users', 'users-cog',
'map-signs', 'cloud-showers-heavy',
'border-all', 'th-large',
'exclamation-circle', 'check-circle'
)
);
@each $style, $names in $fa5-icons {
@each $name in $names {
.fa5-#{$style}-#{$name} {
$asset_url: image-url('fa5/#{$style}/#{$name}.svg');
mask: $asset_url no-repeat center;
-webkit-mask: $asset_url no-repeat center;
display: inline-block;
}
}
}