lib/wp_fire/compiler.rb in wp-fire-0.0.4 vs lib/wp_fire/compiler.rb in wp-fire-0.0.5

- old
+ new

@@ -23,9 +23,12 @@ elsif extname.eql?".php" FileUtils.cp filename, File.join(build_path, File.basename(filename)) elsif [".jpg",".jpeg",".png",".gif",".ico"].include?(extname) Dir.mkdir File.join(build_path, "images") unless File.directory?(File.join(build_path, "images")) FileUtils.cp filename, File.join(build_path, "images", File.basename(filename)) + elsif [".ttf",".eot",".woff",".svg",".otf"].include?(extname) + Dir.mkdir File.join(build_path, "fonts") unless File.directory?(File.join(build_path, "fonts")) + FileUtils.cp filename, File.join(build_path, "fonts", File.basename(filename)) end end def self.compile_all(filenames, build_path) files = [] \ No newline at end of file