Skip to content

Commit

Permalink
New release: version 1.2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
tssajo committed Mar 16, 2019
1 parent 08004ed commit e13ad58
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Minify.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def minify(self):
cmd.extend(['--line-break', str(eo)])
else:
cmd = self.fixStr(self.get_setting('cleancss_command') or 'cleancss').split()
eo = self.get_setting('cleancss_options') or '-O 2 --skip-rebase'
eo = self.get_setting('cleancss_options') or '-O2 --skip-rebase'
if type(eo).__name__ in ('str', 'unicode'):
cmd.extend(self.fixStr(eo).split())
if self.get_setting('css_source_map'):
Expand Down
8 changes: 4 additions & 4 deletions Minify.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// # Global Settings #
// #####################

// Save file before doing any action (minify or beautify)?
// Save the file before doing any action (minify or beautify)?
"save_first": true,

// Auto-minify files on save?
Expand Down Expand Up @@ -44,7 +44,7 @@
// "cleancss_command": "/usr/local/bin/cleancss",

// you can specify command line parameters for cleancss
"cleancss_options": "-O 2 --skip-rebase",
"cleancss_options": "-O2 --skip-rebase",

// you may want to define the uglifycss command with an absolute path
// "uglifycss_command": "/usr/local/bin/uglifycss",
Expand All @@ -71,7 +71,7 @@
// you can specify command line parameters for uglifyjs (for .js minification)
// "uglifyjs_options": "",

// do you wamt to keep comments when minifying javascript files?
// do you want to keep comments when minifying javascript files?
"keep_comments": false,
// you can also specify which comments to keep
// if you set `keep_comments` to true and leave `comments_to_keep` false then uglifyjs will only keep JSDoc-style copyright comments
Expand All @@ -97,7 +97,7 @@
// "html-minifier_command": "/usr/local/bin/html-minifier",

// you can specify command line parameters for .html minification
"html-minifier_options": "--collapse-boolean-attributes --collapse-whitespace --html5 --minify-css --minify-js --preserve-line-breaks --process-conditional-comments --remove-comments --remove-empty-attributes --remove-redundant-attributes --remove-script-type-attributes --remove-style-link-type-attributes",
"html-minifier_options": "--collapse-boolean-attributes --collapse-whitespace --html5 --minify-css --minify-js --preserve-line-breaks --process-conditional-comments --remove-comments --remove-empty-attributes --remove-redundant-attributes --remove-script-type-attributes --remove-style-link-type-attributes --quote-character '",

// you can specify command line parameters for .html beautification
// "js-beautify_html_options": "--indent-size=2",
Expand Down
3 changes: 2 additions & 1 deletion messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
"1.2.4": "messages/1.2.4.txt",
"1.2.5": "messages/1.2.5.txt",
"1.2.6": "messages/1.2.6.txt",
"1.2.7": "messages/1.2.7.txt"
"1.2.7": "messages/1.2.7.txt",
"1.2.8": "messages/1.2.8.txt"
}
21 changes: 21 additions & 0 deletions messages/1.2.8.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Version 1.2.8
-------------

* Bug fix by : Ashutosh Sharma aka ashucg. See: https://github.com/tssajo/Minify/pull/71
It fixes the following issues:
https://github.com/tssajo/Minify/issues/56
https://github.com/tssajo/Minify/issues/59
(Thank you, ashucg!)


# IMPORTANT! #

## It is highly recommended to upgrade to the latest version of clean-css-cli !!

Please open a shell (`Terminal` on Mac OS X, `CMD window` on Windows) and issue the following command:

npm install -g clean-css-cli uglifycss js-beautify html-minifier uglify-js minjson svgo

followed by:

npm update -g clean-css-cli uglifycss js-beautify html-minifier uglify-js minjson svgo

0 comments on commit e13ad58

Please sign in to comment.