Skip to content

Commit

Permalink
open on minify, added to options
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignacio committed May 15, 2012
1 parent 9e31ff5 commit 42b8ab7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Minifier.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@

// the compiler to use for minification.
// Accepted values are: google_closure|uglify_js
"compiler": "google_closure"
"compiler": "google_closure",

// when you create a file you want to automatically open it?
"open_on_min": true
}
4 changes: 3 additions & 1 deletion Minify.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,6 @@ def handle_result(self, edit, thread, selections, offset):
with open(file_path, 'w+', 0) as min_file:
min_file.write(self.output.strip())

self.window.open_file(file_name)
print self.settings.get('open_on_min', True)
if (self.settings.get('open_on_min', True) == True):
self.window.open_file(file_name)

0 comments on commit 42b8ab7

Please sign in to comment.