html-minifier.git
8 years agoMerge pull request #509 from alexlamsl/issue-502
Juriy Zaytsev [Sun, 28 Feb 2016 01:53:09 +0000 (17:53 -0800)]
Merge pull request #509 from alexlamsl/issue-502

fix whitespace trimming of ignoreCustomFragments

8 years agoimprove whitspace handling of ignoreCustomFragments
alexlamsl [Thu, 25 Feb 2016 07:41:22 +0000 (15:41 +0800)]
improve whitspace handling of ignoreCustomFragments

8 years agofixes #502
alexlamsl [Thu, 25 Feb 2016 07:39:22 +0000 (15:39 +0800)]
fixes #502
fixes #505
fixes #506

8 years agocontrol global whitespace trimming under collapseWhitespace
alexlamsl [Thu, 25 Feb 2016 07:32:30 +0000 (15:32 +0800)]
control global whitespace trimming under collapseWhitespace

8 years agoupdate link to clean-css
alexlamsl [Thu, 25 Feb 2016 06:52:12 +0000 (14:52 +0800)]
update link to clean-css

8 years agoremove CleanCSS jshint
alexlamsl [Thu, 25 Feb 2016 06:51:16 +0000 (14:51 +0800)]
remove CleanCSS jshint

8 years agoupdate uglify.js to 2.6.2
alexlamsl [Thu, 25 Feb 2016 06:48:32 +0000 (14:48 +0800)]
update uglify.js to 2.6.2

8 years agoupdate devDependencies
alexlamsl [Thu, 25 Feb 2016 06:46:26 +0000 (14:46 +0800)]
update devDependencies

8 years agofix typo and grammar in cli.js
Alex Lam S.L [Wed, 24 Feb 2016 10:05:23 +0000 (18:05 +0800)]
fix typo and grammar in cli.js

also update copyright year

8 years agoMerge pull request #498 from ybiquitous/typo-include-dir
Juriy Zaytsev [Wed, 24 Feb 2016 00:00:40 +0000 (16:00 -0800)]
Merge pull request #498 from ybiquitous/typo-include-dir

fix typo(cli): 'include-dir' -> 'input-dir'

8 years agoVersion 1.2.0
Juriy Zaytsev [Fri, 19 Feb 2016 19:26:03 +0000 (14:26 -0500)]
Version 1.2.0

8 years agoMerge pull request #496 from alexlamsl/gh-pages
Juriy Zaytsev [Fri, 19 Feb 2016 17:43:58 +0000 (12:43 -0500)]
Merge pull request #496 from alexlamsl/gh-pages

addresses #495 and then some

8 years agocompact conditional
alexlamsl [Fri, 19 Feb 2016 03:12:59 +0000 (11:12 +0800)]
compact conditional

8 years agoimprove readability
alexlamsl [Fri, 19 Feb 2016 03:00:06 +0000 (11:00 +0800)]
improve readability

8 years agoreduce number of arguments in collapseWhitespace()
alexlamsl [Fri, 19 Feb 2016 02:55:55 +0000 (10:55 +0800)]
reduce number of arguments in collapseWhitespace()

8 years agofix typo(cli): `need` -> `needs`
ybiquitous [Thu, 18 Feb 2016 08:40:03 +0000 (17:40 +0900)]
fix typo(cli): `need` -> `needs`

8 years agofix typo(cli): 'include-dir' -> 'input-dir'
ybiquitous [Thu, 18 Feb 2016 06:57:11 +0000 (15:57 +0900)]
fix typo(cli): 'include-dir' -> 'input-dir'

8 years agointegrate tag omission rules from WhatWG
alexlamsl [Wed, 17 Feb 2016 20:41:16 +0000 (04:41 +0800)]
integrate tag omission rules from WhatWG
fixes #497

8 years agoupdate devDependencies
alexlamsl [Wed, 17 Feb 2016 17:45:21 +0000 (01:45 +0800)]
update devDependencies

8 years agoignoreCustomFragments to handle <%...%> and <?...?>
alexlamsl [Tue, 16 Feb 2016 20:02:47 +0000 (04:02 +0800)]
ignoreCustomFragments to handle <%...%> and <?...?>
fixes #495

8 years agofix interactions between preserveLineBreaks and conservativeCollapse
alexlamsl [Tue, 16 Feb 2016 19:51:56 +0000 (03:51 +0800)]
fix interactions between preserveLineBreaks and conservativeCollapse

8 years agoMerge pull request #494 from alexlamsl/gh-pages
Juriy Zaytsev [Tue, 16 Feb 2016 19:15:50 +0000 (14:15 -0500)]
Merge pull request #494 from alexlamsl/gh-pages

benchmark across git history

8 years agoimprove module loading workaround
alexlamsl [Sun, 14 Feb 2016 15:32:55 +0000 (23:32 +0800)]
improve module loading workaround

8 years agoorder by benchmark file sizes to improve success rates
alexlamsl [Sun, 14 Feb 2016 11:12:12 +0000 (19:12 +0800)]
order by benchmark file sizes to improve success rates

8 years agoimplement progress bar
alexlamsl [Sun, 14 Feb 2016 11:03:44 +0000 (19:03 +0800)]
implement progress bar
output errors to file

8 years agoworkaround hysterical raisins
alexlamsl [Sun, 14 Feb 2016 09:33:33 +0000 (17:33 +0800)]
workaround hysterical raisins

8 years agosimplify IPC handling
alexlamsl [Sun, 14 Feb 2016 07:09:01 +0000 (15:09 +0800)]
simplify IPC handling

8 years agotolerate individual failures
alexlamsl [Sun, 14 Feb 2016 05:20:06 +0000 (13:20 +0800)]
tolerate individual failures

8 years agoinclude full error output to aid diagnosis
alexlamsl [Sun, 14 Feb 2016 05:07:19 +0000 (13:07 +0800)]
include full error output to aid diagnosis

8 years agoreimplement watchdog timer
alexlamsl [Sun, 14 Feb 2016 04:37:32 +0000 (12:37 +0800)]
reimplement watchdog timer

8 years agoreinstate minifyURLs
alexlamsl [Sun, 14 Feb 2016 04:36:04 +0000 (12:36 +0800)]
reinstate minifyURLs

8 years agoimprove error reporting
alexlamsl [Sun, 14 Feb 2016 04:27:15 +0000 (12:27 +0800)]
improve error reporting
fix lints

8 years agoremove superfluous git command
alexlamsl [Sun, 14 Feb 2016 04:18:12 +0000 (12:18 +0800)]
remove superfluous git command

8 years agouse module directly
alexlamsl [Sun, 14 Feb 2016 04:08:59 +0000 (12:08 +0800)]
use module directly
cli dependency doesn't exist as long back in git history

8 years agoadjust magic constants
alexlamsl [Sat, 13 Feb 2016 20:12:51 +0000 (04:12 +0800)]
adjust magic constants

8 years agoadd watchdog timer for minify task
alexlamsl [Sat, 13 Feb 2016 19:20:35 +0000 (03:20 +0800)]
add watchdog timer for minify task

8 years agocommon storage for benchmark file details
alexlamsl [Sat, 13 Feb 2016 18:57:56 +0000 (02:57 +0800)]
common storage for benchmark file details

8 years agoExcel doesn't like 0000 as time zone specifier
alexlamsl [Sat, 13 Feb 2016 17:44:29 +0000 (01:44 +0800)]
Excel doesn't like 0000 as time zone specifier

8 years agoadjust git date format for Excel
alexlamsl [Sat, 13 Feb 2016 17:19:23 +0000 (01:19 +0800)]
adjust git date format for Excel

8 years agoimplement benchmark against git history
alexlamsl [Sat, 13 Feb 2016 14:00:31 +0000 (22:00 +0800)]
implement benchmark against git history

8 years agoMerge pull request #488 from alexlamsl/gh-pages
Juriy Zaytsev [Fri, 12 Feb 2016 22:22:52 +0000 (17:22 -0500)]
Merge pull request #488 from alexlamsl/gh-pages

removeOptionalTags and other small fixes

8 years agoupdate benchmark results
alexlamsl [Fri, 12 Feb 2016 22:09:50 +0000 (06:09 +0800)]
update benchmark results

8 years agoseparate createMap() from createMapFromString()
alexlamsl [Fri, 12 Feb 2016 22:09:44 +0000 (06:09 +0800)]
separate createMap() from createMapFromString()

8 years agoremove obsolete comments
alexlamsl [Fri, 12 Feb 2016 21:32:05 +0000 (05:32 +0800)]
remove obsolete comments

8 years agoadd comments explaining tag omission rules
alexlamsl [Fri, 12 Feb 2016 21:25:47 +0000 (05:25 +0800)]
add comments explaining tag omission rules

8 years agorefactor createMap()
alexlamsl [Fri, 12 Feb 2016 20:28:47 +0000 (04:28 +0800)]
refactor createMap()

8 years agofix corner cases for collapseWhitespace
alexlamsl [Fri, 12 Feb 2016 20:12:26 +0000 (04:12 +0800)]
fix corner cases for collapseWhitespace
fixes #491

8 years agoimprove parser logic
alexlamsl [Fri, 12 Feb 2016 20:11:12 +0000 (04:11 +0800)]
improve parser logic

8 years agoupdate benchmark results
alexlamsl [Mon, 8 Feb 2016 06:58:27 +0000 (14:58 +0800)]
update benchmark results

8 years agoimprove interaction between removeOptionalTags and removeEmptyAttributes
alexlamsl [Mon, 8 Feb 2016 06:08:18 +0000 (14:08 +0800)]
improve interaction between removeOptionalTags and removeEmptyAttributes

8 years agoreimplement removeOptionalTags according to HTML5 specs
alexlamsl [Mon, 8 Feb 2016 05:30:51 +0000 (13:30 +0800)]
reimplement removeOptionalTags according to HTML5 specs
fixes #361

8 years agoend tag minification should take caseSensitive into account
alexlamsl [Mon, 8 Feb 2016 05:23:05 +0000 (13:23 +0800)]
end tag minification should take caseSensitive into account

8 years agorefactor removeEmptyElements
alexlamsl [Mon, 8 Feb 2016 05:10:51 +0000 (13:10 +0800)]
refactor removeEmptyElements
add more tests for clarification

8 years agohandle variations of script type attributes
alexlamsl [Mon, 8 Feb 2016 05:06:23 +0000 (13:06 +0800)]
handle variations of script type attributes
text/JavaScript;version=1.8

8 years agoimprove code reuse
alexlamsl [Mon, 8 Feb 2016 05:01:47 +0000 (13:01 +0800)]
improve code reuse

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