From e13ad58a6d770c9fcc51bc18934f19108e45f61f Mon Sep 17 00:00:00 2001 From: tssajo Date: Sat, 16 Mar 2019 13:08:38 +0100 Subject: [PATCH] New release: version 1.2.8 --- Minify.py | 2 +- Minify.sublime-settings | 8 ++++---- messages.json | 3 ++- messages/1.2.8.txt | 21 +++++++++++++++++++++ 4 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 messages/1.2.8.txt diff --git a/Minify.py b/Minify.py index 3393743..f7fe0ff 100644 --- a/Minify.py +++ b/Minify.py @@ -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'): diff --git a/Minify.sublime-settings b/Minify.sublime-settings index ffa21e9..b319537 100644 --- a/Minify.sublime-settings +++ b/Minify.sublime-settings @@ -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? @@ -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", @@ -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 @@ -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", diff --git a/messages.json b/messages.json index f4bfe84..9a54515 100644 --- a/messages.json +++ b/messages.json @@ -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" } diff --git a/messages/1.2.8.txt b/messages/1.2.8.txt new file mode 100644 index 0000000..257d54b --- /dev/null +++ b/messages/1.2.8.txt @@ -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