lib/tasks/single-output-task.rb in distil-0.8.2 vs lib/tasks/single-output-task.rb in distil-0.8.4
- old
+ new
@@ -20,17 +20,21 @@
@name_concat= "#{prefix}#{target_name}-uncompressed.#{type}"
@name_min= "#{prefix}#{target_name}.#{type}"
@name_gz= "#{prefix}#{target_name}.#{type}.gz"
@name_debug= "#{prefix}#{target_name}-debug.#{type}"
+ @concatenation_join_string= ""
@products= [@name_concat, @name_min, @name_gz, @name_debug]
@concat = ""
@debug = ""
end
def process_files
@included_files.each { |f|
+ if (!@concat.empty?)
+ @concat << @concatenation_join_string||""
+ end
@concat << f.filtered_content(options)
@debug << f.debug_content(options)
}
end