From c7922c4a3599e5d1eafa2b181251a285aad7029f Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Sat, 18 Oct 2014 12:56:52 -0500 Subject: [PATCH] move actual type detection to sprockets --- .../lib/middleman-core/sources/source_watcher.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/middleman-core/lib/middleman-core/sources/source_watcher.rb b/middleman-core/lib/middleman-core/sources/source_watcher.rb index 458d0012..b8b2e4f3 100644 --- a/middleman-core/lib/middleman-core/sources/source_watcher.rb +++ b/middleman-core/lib/middleman-core/sources/source_watcher.rb @@ -28,9 +28,6 @@ module Middleman Contract None => Hash attr_reader :options - IMAGE_EXTENSIONS = %w(.png .jpg .jpeg .webp .svg .svgz .gif) - FONT_EXTENSIONS = %w(.otf .woff .eot .ttf) - # Construct a new SourceWatcher # # @param [Middleman::Sources] parent The parent collection. @@ -270,11 +267,6 @@ module Middleman def path_to_source_file(path) types = Set.new([@type]) - if @type == :source - types << :image if IMAGE_EXTENSIONS.include?(path.extname) - types << :font if FONT_EXTENSIONS.include?(path.extname) - end - ::Middleman::SourceFile.new( path.relative_path_from(@directory), path, @directory, types) end