railslove / fontello_rails_converter

CLI gem for comfortably working with icon fonts (open, download, convert) from http://fontello.com for usage in Rails apps.
MIT License
73 stars 35 forks source link

Sprockets 4 does not support regex in precompile assets configuration #48

Open Yanchek99 opened 4 years ago

Yanchek99 commented 4 years ago

Sprockets 4 has introduced breaking changes when using a regex in the precompile assets configuration. Instead the fix is to pull those assets in using the manifest.js configuration. Details

The following line causes issues when using Sprockets 4. https://github.com/railslove/fontello_rails_converter/blob/c781f956f3a7e23cf8990a5f86344940f949c21e/lib/fontello_rails_converter/railtie.rb#L7

FontAwesome has a fix that still uses the precompile path however they know the names of the font files as where we do not. https://github.com/FortAwesome/font-awesome-sass/commit/b8dd32cf3bcd5d14c12543d767f8db68b31a6a9b

eng-usamak commented 1 year ago

I am facing same issue with this gem, did you get any luck or any way to use sprocket 4 with this gem?