html-minifier.git
8 years agoupdate empty tag list
alexlamsl [Mon, 8 Feb 2016 04:59:34 +0000 (12:59 +0800)]
update empty tag list

8 years agoMerge pull request #487 from alexlamsl/gh-pages
Juriy Zaytsev [Sun, 7 Feb 2016 22:11:28 +0000 (17:11 -0500)]
Merge pull request #487 from alexlamsl/gh-pages

fix minifyURLs command-line usage

8 years agoupdate benchmark results
alexlamsl [Sun, 7 Feb 2016 08:54:10 +0000 (16:54 +0800)]
update benchmark results

8 years agoenable minifyURLs in benchmark.js
alexlamsl [Sun, 7 Feb 2016 08:53:55 +0000 (16:53 +0800)]
enable minifyURLs in benchmark.js

8 years agofix minifyURLs in command-line usage
alexlamsl [Sun, 7 Feb 2016 08:29:16 +0000 (16:29 +0800)]
fix minifyURLs in command-line usage
since it is defined as a boolean parameter, this option never worked

8 years agoMerge pull request #485 from alexlamsl/gh-pages
Juriy Zaytsev [Fri, 5 Feb 2016 19:45:52 +0000 (14:45 -0500)]
Merge pull request #485 from alexlamsl/gh-pages

cli fixes

8 years agofixes #428
alexlamsl [Fri, 5 Feb 2016 19:34:06 +0000 (03:34 +0800)]
fixes #428

8 years agofix cli error reporting
alexlamsl [Fri, 5 Feb 2016 19:32:26 +0000 (03:32 +0800)]
fix cli error reporting
it was attempting to write the error object onto stderr, which errs out by itself and masked the original error and stack trace

8 years agofix corner case when merging whitespace from across comment block
alexlamsl [Fri, 5 Feb 2016 19:30:33 +0000 (03:30 +0800)]
fix corner case when merging whitespace from across comment block

8 years agoMerge pull request #484 from alexlamsl/gh-pages
Juriy Zaytsev [Fri, 5 Feb 2016 19:09:31 +0000 (14:09 -0500)]
Merge pull request #484 from alexlamsl/gh-pages

fix issues with whitespaces and comments

8 years agoimprove collapseWhitespace when removeComments is active
alexlamsl [Fri, 5 Feb 2016 18:38:42 +0000 (02:38 +0800)]
improve collapseWhitespace when removeComments is active

8 years agoupdate devDependencies
alexlamsl [Fri, 5 Feb 2016 18:23:11 +0000 (02:23 +0800)]
update devDependencies

8 years agoimprove minification of whitespaces around comments
alexlamsl [Fri, 5 Feb 2016 18:16:09 +0000 (02:16 +0800)]
improve minification of whitespaces around comments
fixes #215

8 years agorearrange order of minification
alexlamsl [Fri, 5 Feb 2016 17:34:46 +0000 (01:34 +0800)]
rearrange order of minification

8 years agotreat comments similarly as inline tags and be conservative with whitespace removal
alexlamsl [Fri, 5 Feb 2016 17:23:50 +0000 (01:23 +0800)]
treat comments similarly as inline tags and be conservative with whitespace removal
fixes #346

8 years agoimprove compatibility with IE<9
alexlamsl [Fri, 5 Feb 2016 16:34:13 +0000 (00:34 +0800)]
improve compatibility with IE<9

8 years agoMerge pull request #481 from alexlamsl/gh-pages
Juriy Zaytsev [Thu, 4 Feb 2016 20:57:41 +0000 (15:57 -0500)]
Merge pull request #481 from alexlamsl/gh-pages

Misc fixes

8 years agoMerge pull request #482 from gdub22/input-dir-fix
Juriy Zaytsev [Thu, 4 Feb 2016 20:31:08 +0000 (15:31 -0500)]
Merge pull request #482 from gdub22/input-dir-fix

fix cli input-dir only processing first file

8 years agoimprove performance by key lookup rather than Array.indexOf()
alexlamsl [Thu, 4 Feb 2016 20:30:31 +0000 (04:30 +0800)]
improve performance by key lookup rather than Array.indexOf()

8 years agoclarify minification logic
alexlamsl [Thu, 4 Feb 2016 20:05:30 +0000 (04:05 +0800)]
clarify minification logic

8 years agoconsolidate conf files
alexlamsl [Thu, 4 Feb 2016 19:56:09 +0000 (03:56 +0800)]
consolidate conf files

8 years agofix cli input-dir only processing first file
Garth Poitras [Thu, 4 Feb 2016 18:24:29 +0000 (13:24 -0500)]
fix cli input-dir only processing first file

8 years agosimplify logical expressions
alexlamsl [Thu, 4 Feb 2016 17:18:19 +0000 (01:18 +0800)]
simplify logical expressions
a | (!a & (b | c)) --> a | b | c
!a ? b : c --> a ? c : b

8 years agoupdate tag list for tests
alexlamsl [Thu, 4 Feb 2016 17:16:40 +0000 (01:16 +0800)]
update tag list for tests

8 years agoreduce workload on preserveLineBreaks
alexlamsl [Thu, 4 Feb 2016 16:47:02 +0000 (00:47 +0800)]
reduce workload on preserveLineBreaks

8 years agoremove magic constant
alexlamsl [Thu, 4 Feb 2016 10:56:48 +0000 (18:56 +0800)]
remove magic constant

8 years agoimprove whitespace removal when preserveLineBreaks is used but not matched
alexlamsl [Thu, 4 Feb 2016 10:34:03 +0000 (18:34 +0800)]
improve whitespace removal when preserveLineBreaks is used but not matched

8 years agofix interaction between collapseWhitespace and removeEmptyElements
alexlamsl [Thu, 4 Feb 2016 10:03:36 +0000 (18:03 +0800)]
fix interaction between collapseWhitespace and removeEmptyElements

8 years agofix interaction between conservativeCollapse and preserveLineBreaks
alexlamsl [Thu, 4 Feb 2016 09:33:33 +0000 (17:33 +0800)]
fix interaction between conservativeCollapse and preserveLineBreaks

8 years agofixes #359
alexlamsl [Thu, 4 Feb 2016 08:14:44 +0000 (16:14 +0800)]
fixes #359

8 years agofixes #476
alexlamsl [Thu, 4 Feb 2016 08:07:18 +0000 (16:07 +0800)]
fixes #476

8 years agofixes #463
alexlamsl [Thu, 4 Feb 2016 07:59:19 +0000 (15:59 +0800)]
fixes #463

8 years agofixes #431
alexlamsl [Thu, 4 Feb 2016 07:42:20 +0000 (15:42 +0800)]
fixes #431

8 years agofixes #445
alexlamsl [Thu, 4 Feb 2016 07:40:38 +0000 (15:40 +0800)]
fixes #445

8 years agofixes #368
alexlamsl [Thu, 4 Feb 2016 07:38:54 +0000 (15:38 +0800)]
fixes #368

8 years agoMerge pull request #478 from alexlamsl/gh-pages
Juriy Zaytsev [Tue, 2 Feb 2016 22:27:57 +0000 (17:27 -0500)]
Merge pull request #478 from alexlamsl/gh-pages

improve benchmarks

8 years agoadd LZMA to benchmark
alexlamsl [Tue, 2 Feb 2016 11:25:45 +0000 (19:25 +0800)]
add LZMA to benchmark

8 years agoadd brotli to benchmark
alexlamsl [Tue, 2 Feb 2016 05:44:26 +0000 (13:44 +0800)]
add brotli to benchmark

8 years agoadd progress bar
alexlamsl [Mon, 1 Feb 2016 20:15:46 +0000 (04:15 +0800)]
add progress bar

8 years agoimprove code reuse
alexlamsl [Mon, 1 Feb 2016 19:39:38 +0000 (03:39 +0800)]
improve code reuse

8 years agorefactor functions
alexlamsl [Mon, 1 Feb 2016 18:59:49 +0000 (02:59 +0800)]
refactor functions

8 years agoinsert some comments
alexlamsl [Mon, 1 Feb 2016 18:02:07 +0000 (02:02 +0800)]
insert some comments

8 years agoremoved es6-draft
alexlamsl [Mon, 1 Feb 2016 17:43:59 +0000 (01:43 +0800)]
removed es6-draft

8 years agoadded Will Peavy and htmlcompressor.com
alexlamsl [Mon, 1 Feb 2016 17:40:46 +0000 (01:40 +0800)]
added Will Peavy and htmlcompressor.com

8 years agorearrange options in alphabetical order
alexlamsl [Mon, 1 Feb 2016 17:38:06 +0000 (01:38 +0800)]
rearrange options in alphabetical order

8 years agoimprove benchmark.js
alexlamsl [Mon, 1 Feb 2016 09:36:16 +0000 (17:36 +0800)]
improve benchmark.js
- use internal zlib instead of external gzip command
- perform gzip on Minimized output
- incorporate Minimize results into table

8 years agorestore disabled tests
alexlamsl [Mon, 1 Feb 2016 09:19:28 +0000 (17:19 +0800)]
restore disabled tests

8 years agoupdate dependencies
alexlamsl [Mon, 1 Feb 2016 09:16:05 +0000 (17:16 +0800)]
update dependencies

8 years agoMerge pull request #477 from alexlamsl/gh-pages
Juriy Zaytsev [Mon, 1 Feb 2016 06:12:28 +0000 (01:12 -0500)]
Merge pull request #477 from alexlamsl/gh-pages

fixes for htmlmin:ignore and ignoreCustomFragments

8 years agosuppress removeEmptyElements from safe options on web interface
alexlamsl [Sun, 31 Jan 2016 07:06:10 +0000 (15:06 +0800)]
suppress removeEmptyElements from safe options on web interface

8 years agofix interactions between ignore fragments and comments
alexlamsl [Sun, 31 Jan 2016 06:20:37 +0000 (14:20 +0800)]
fix interactions between ignore fragments and comments
fixes #436
fixes #442

8 years agoadd ignoreCustomFragments to command-line
alexlamsl [Sun, 31 Jan 2016 06:18:39 +0000 (14:18 +0800)]
add ignoreCustomFragments to command-line
fixes #464

8 years agoMerge pull request #474 from alexlamsl/gh-pages
Juriy Zaytsev [Fri, 29 Jan 2016 05:12:26 +0000 (00:12 -0500)]
Merge pull request #474 from alexlamsl/gh-pages

unwind currentTag

8 years agoimprove test case
alexlamsl [Thu, 28 Jan 2016 22:17:03 +0000 (06:17 +0800)]
improve test case

8 years agounwind currentTag
alexlamsl [Thu, 28 Jan 2016 09:05:53 +0000 (17:05 +0800)]
unwind currentTag
fixes #435

8 years agoMerge pull request #473 from alexlamsl/gh-pages
Juriy Zaytsev [Thu, 28 Jan 2016 04:28:31 +0000 (23:28 -0500)]
Merge pull request #473 from alexlamsl/gh-pages

implement custom event attributes for minifyJs

8 years agoimplement customEventAttributes
alexlamsl [Wed, 27 Jan 2016 12:37:02 +0000 (20:37 +0800)]
implement customEventAttributes
fixes #412

8 years agoadd support for removeTagWhitespace on web and command line interfaces
alexlamsl [Wed, 27 Jan 2016 11:33:58 +0000 (19:33 +0800)]
add support for removeTagWhitespace on web and command line interfaces

8 years agoMerge pull request #468 from alexlamsl/gh-pages
Juriy Zaytsev [Mon, 25 Jan 2016 15:41:14 +0000 (10:41 -0500)]
Merge pull request #468 from alexlamsl/gh-pages

improve interaction of keepClosingSlash & removeAttributeQuotes

8 years agoupdate dist files
alexlamsl [Sat, 23 Jan 2016 19:12:56 +0000 (03:12 +0800)]
update dist files

8 years agoadd minimize to package.json
alexlamsl [Sat, 23 Jan 2016 06:50:59 +0000 (14:50 +0800)]
add minimize to package.json

8 years agostrips space between tag attributes
alexlamsl [Wed, 20 Jan 2016 12:21:47 +0000 (20:21 +0800)]
strips space between tag attributes

8 years agoimprove quote and escape
alexlamsl [Wed, 20 Jan 2016 10:44:43 +0000 (18:44 +0800)]
improve quote and escape
- avoid excessive attribute value character escaping
- choose between ' and " if quoteCharacter unspecified

8 years agofix `isLast` corner case
alexlamsl [Tue, 19 Jan 2016 15:58:02 +0000 (23:58 +0800)]
fix `isLast` corner case
trailing attributes can be removed

8 years agoavoid unnecessary work
alexlamsl [Tue, 19 Jan 2016 15:19:39 +0000 (23:19 +0800)]
avoid unnecessary work

8 years agoimprove interaction of keepClosingSlash & removeAttributeQuotes
alexlamsl [Tue, 19 Jan 2016 08:57:00 +0000 (16:57 +0800)]
improve interaction of keepClosingSlash & removeAttributeQuotes

8 years agoMerge pull request #466 from pra85/2016
Duncan Beevers [Fri, 15 Jan 2016 19:39:18 +0000 (13:39 -0600)]
Merge pull request #466 from pra85/2016

Update year range to 2016

8 years agoUpdate year range to 2016
Prayag Verma [Fri, 15 Jan 2016 18:45:04 +0000 (00:15 +0530)]
Update year range to 2016

8 years agoUpdate clean-css to v3.4.9.
XhmikosR [Wed, 6 Jan 2016 15:18:38 +0000 (17:18 +0200)]
Update clean-css to v3.4.9.

[ci skip]

8 years agoUpdate grunt-jscs to v2.5.x.
XhmikosR [Wed, 6 Jan 2016 15:18:24 +0000 (17:18 +0200)]
Update grunt-jscs to v2.5.x.

8 years agoMerge pull request #460 from isiahmeadows/patch-1
Juriy Zaytsev [Tue, 5 Jan 2016 19:34:58 +0000 (11:34 -0800)]
Merge pull request #460 from isiahmeadows/patch-1

Fix #459

8 years agoAllow `!= null`
Isiah Meadows [Tue, 5 Jan 2016 19:07:26 +0000 (14:07 -0500)]
Allow `!= null`

8 years agoSimplify code
Isiah Meadows [Tue, 5 Jan 2016 19:03:46 +0000 (14:03 -0500)]
Simplify code

8 years agoMerge pull request #457 from Rycochet/patch-1
Juriy Zaytsev [Tue, 5 Jan 2016 19:03:36 +0000 (11:03 -0800)]
Merge pull request #457 from Rycochet/patch-1

Add collapseInlineTagWhitespace to README.md

8 years agoFix #459
Isiah Meadows [Tue, 5 Jan 2016 18:37:13 +0000 (13:37 -0500)]
Fix #459

8 years agoAdd collapseInlineTagWhitespace to README.md
Ryc O'Chet [Tue, 5 Jan 2016 09:19:18 +0000 (09:19 +0000)]
Add collapseInlineTagWhitespace to README.md

Despite GitHub making this a larger diff, only a single line has been added and none changed.

8 years agoVersion 1.1.1
Juriy Zaytsev [Mon, 4 Jan 2016 22:09:52 +0000 (14:09 -0800)]
Version 1.1.1

8 years agoMerge pull request #456 from kangax/revert-433-issue381-svg
Juriy Zaytsev [Mon, 4 Jan 2016 22:08:26 +0000 (14:08 -0800)]
Merge pull request #456 from kangax/revert-433-issue381-svg

Revert "[In Progress] - SVG Minification using SVGO"

8 years agoRevert "[In Progress] - SVG Minification using SVGO"
Juriy Zaytsev [Mon, 4 Jan 2016 22:08:11 +0000 (14:08 -0800)]
Revert "[In Progress] - SVG Minification using SVGO"

8 years agoVersion 1.1.0
Juriy Zaytsev [Mon, 4 Jan 2016 21:50:34 +0000 (13:50 -0800)]
Version 1.1.0

8 years agoRemove remaining bits of removeIgnored
Juriy Zaytsev [Mon, 4 Jan 2016 18:38:37 +0000 (10:38 -0800)]
Remove remaining bits of removeIgnored

8 years agoMerge pull request #453 from marlun/patch-1
Juriy Zaytsev [Tue, 29 Dec 2015 22:45:02 +0000 (17:45 -0500)]
Merge pull request #453 from marlun/patch-1

Fix move of cli.exit(status) outside of runMinifiy

8 years agoFix move of cli.exit(status) outside of runMinifiy
Martin Lundberg [Tue, 29 Dec 2015 22:29:16 +0000 (23:29 +0100)]
Fix move of cli.exit(status) outside of runMinifiy

It seems like the call to `cli.exit(status)` was unconsciously moved outside of runMinify in a merge conflict (https://github.com/kangax/html-minifier/commit/e17c9059feaa9487e4644cc144713a6944b176ab#diff-2cce40143051e25f811b56c79d619bf5) which is causing a thrown error: "ReferenceError: status is not defined"

8 years agoMerge pull request #433 from genintho/issue381-svg
Juriy Zaytsev [Thu, 24 Dec 2015 16:43:45 +0000 (11:43 -0500)]
Merge pull request #433 from genintho/issue381-svg

[In Progress] - SVG Minification using SVGO

8 years agoMerge pull request #440 from sapics/patch1
Juriy Zaytsev [Thu, 24 Dec 2015 16:40:29 +0000 (11:40 -0500)]
Merge pull request #440 from sapics/patch1

Add collapseInlineTagWhitespace option

8 years agoVersion 1.0.1
Juriy Zaytsev [Thu, 24 Dec 2015 16:36:03 +0000 (11:36 -0500)]
Version 1.0.1

8 years agoTravis CI: switch to "5".
XhmikosR [Thu, 24 Dec 2015 16:35:37 +0000 (18:35 +0200)]
Travis CI: switch to "5".

8 years agoUpdate assets.
XhmikosR [Thu, 24 Dec 2015 16:33:25 +0000 (18:33 +0200)]
Update assets.

clean-css 3.4.8, uglify-js 2.6.1.

[ci skip]

8 years agoUpdate devDependencies.
XhmikosR [Thu, 24 Dec 2015 16:32:44 +0000 (18:32 +0200)]
Update devDependencies.

8 years agoUpdate README.md
Juriy Zaytsev [Mon, 21 Dec 2015 19:33:21 +0000 (14:33 -0500)]
Update README.md

8 years agoAdd collapseInlineTagWhitespace option
sapics [Fri, 20 Nov 2015 23:56:54 +0000 (08:56 +0900)]
Add collapseInlineTagWhitespace option

8 years agoAdd a test for SVG minification
Thomas Genin [Tue, 17 Nov 2015 23:45:20 +0000 (15:45 -0800)]
Add a test for SVG minification

8 years agoMerge branch 'gh-pages' of https://github.com/kangax/html-minifier into issue381-svg
Thomas Genin [Tue, 17 Nov 2015 23:16:16 +0000 (15:16 -0800)]
Merge branch 'gh-pages' of https://github.com/kangax/html-minifier into issue381-svg

 Conflicts:
package.json

8 years agoUpdate dependencies.
XhmikosR [Fri, 13 Nov 2015 16:07:19 +0000 (18:07 +0200)]
Update dependencies.

uglify-js 2.6.0, grunt-jscs 2.3.0.

8 years agoUpdate .gitignore.
XhmikosR [Fri, 13 Nov 2015 16:06:46 +0000 (18:06 +0200)]
Update .gitignore.

[ci skip]

8 years agoUpdate Travis Ci to use `stable` and remove 0.12.
XhmikosR [Fri, 13 Nov 2015 16:05:31 +0000 (18:05 +0200)]
Update Travis Ci to use `stable` and remove 0.12.

8 years agoRestore SVG into the common tag
Thomas Genin [Wed, 11 Nov 2015 22:50:01 +0000 (14:50 -0800)]
Restore SVG into the common tag

8 years agoStart to minify SVG
Thomas Genin [Wed, 11 Nov 2015 22:24:14 +0000 (14:24 -0800)]
Start to minify SVG

8 years agoMerge pull request #432 from genintho/issue323
Juriy Zaytsev [Tue, 10 Nov 2015 11:55:09 +0000 (12:55 +0100)]
Merge pull request #432 from genintho/issue323

Minify all files inside a directory

8 years agoStyle fixes
Thomas Genin [Tue, 10 Nov 2015 04:48:48 +0000 (20:48 -0800)]
Style fixes