From c6fbb0ac2b2d224ef8ae56c37489db822c55d8c9 Mon Sep 17 00:00:00 2001 From: peilonghui Date: Thu, 26 Jul 2018 16:44:20 +0800 Subject: [PATCH] woff_path should from css option not fonts --- lib/fontcustom/generator/template.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fontcustom/generator/template.rb b/lib/fontcustom/generator/template.rb index 25290baa..10ec4d02 100644 --- a/lib/fontcustom/generator/template.rb +++ b/lib/fontcustom/generator/template.rb @@ -185,7 +185,7 @@ def font_face(style = {}) end def woff_base64 - woff_path = File.join(@options[:output][:fonts], "#{@font_path}.woff") + woff_path = File.join(@options[:output][:css], "#{@font_path}.woff") Base64.encode64(File.binread(File.join(woff_path))).gsub("\n", "") end