Defect #41729 ยป 41729-fix-svg_sprite-loaderror.patch
| lib/tasks/icons.rake | ||
|---|---|---|
| 16 | 16 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 17 | 17 | |
| 18 | 18 |
unless Rails.env.production? |
| 19 |
require "svg_sprite" |
|
| 20 | ||
| 21 | 19 |
ICON_RELEASE_VERSION = "v3.19.0" |
| 22 | 20 |
ICON_DEFAULT_STYLE = "outline" |
| 23 | 21 |
SOURCE = URI.parse("https://raw.githubusercontent.com/tabler/tabler-icons/#{ICON_RELEASE_VERSION}/icons")
|
| ... | ... | |
| 121 | 119 |
end |
| 122 | 120 | |
| 123 | 121 |
def generate_svg_sprite(input_path, sprite_path) |
| 122 |
require "svg_sprite" |
|
| 123 | ||
| 124 | 124 |
SvgSprite.call( |
| 125 | 125 |
input: input_path, |
| 126 | 126 |
name: 'icon', |