lib/slim-grunt-helpers/models/usemin.rb in slim-grunt-helpers-0.3.0 vs lib/slim-grunt-helpers/models/usemin.rb in slim-grunt-helpers-0.4.0
- old
+ new
@@ -39,9 +39,16 @@
File.directory? file
end.each do |file|
file_name = file.to_s
real_root_path = "#{ root_path }/"
file_name[real_root_path] = ''
+ transform_ext = options.delete(:transform_ext)
+ unless transform_ext.nil?
+ transform_ext = ".#{ transform_ext }" unless transform_ext[0] == '.'
+
+ origin_ext = File.extname(file_name)
+ file_name[origin_ext] = transform_ext
+ end
self.require file_name, options
end
end
\ No newline at end of file