Permalink
Browse files

Don't write source map if it's not enabled.

  • Loading branch information...
1 parent 8079b04 commit d6dafa9fe87b1b55400379fba18a7da4601e00b8 @jcoglan committed Mar 24, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/jake/buildable.rb
View
@@ -93,7 +93,8 @@ def write!
source_map = output_code.source_map if output_code.respond_to?(:source_map)
File.open(path, 'w') { |f| f.write(output_code.strip) }
- if source_map
+
+ if source_map and source_map.enabled?
File.open(source_map.filename, 'w') { |f| f.write(source_map.to_s.strip) }
end

0 comments on commit d6dafa9

Please sign in to comment.