html-minifier.git
8 years agocontrol flag for conditional comments minification
alexlamsl [Fri, 18 Mar 2016 10:51:18 +0000 (18:51 +0800)]
control flag for conditional comments minification
fixes #563

8 years agoMerge pull request #571 from alexlamsl/inline-empty-content-whitespace
Alex Lam S.L [Mon, 21 Mar 2016 20:16:56 +0000 (04:16 +0800)]
Merge pull request #571 from alexlamsl/inline-empty-content-whitespace

treat empty inline tags as text

8 years agotreat empty inline tags as text
alexlamsl [Mon, 21 Mar 2016 14:23:05 +0000 (22:23 +0800)]
treat empty inline tags as text
libraries like FontAwesome would insert content with CSS

8 years agoMerge pull request #574 from alexlamsl/issue-572
Alex Lam S.L [Mon, 21 Mar 2016 20:04:52 +0000 (04:04 +0800)]
Merge pull request #574 from alexlamsl/issue-572

move chunk index within comment

8 years agomove chunk index within comment
alexlamsl [Mon, 21 Mar 2016 16:19:11 +0000 (00:19 +0800)]
move chunk index within comment
fixes #572

8 years agoMerge pull request #568 from oliviertassinari/fix-webpack
Alex Lam S.L [Mon, 21 Mar 2016 19:48:16 +0000 (03:48 +0800)]
Merge pull request #568 from oliviertassinari/fix-webpack

fix the static analysis of Webpack

8 years agoMerge pull request #573 from alexlamsl/eslint-populate
Alex Lam S.L [Mon, 21 Mar 2016 17:26:17 +0000 (01:26 +0800)]
Merge pull request #573 from alexlamsl/eslint-populate

populate eslint with common rules

8 years agopopulate eslint with common rules
alexlamsl [Mon, 21 Mar 2016 15:43:58 +0000 (23:43 +0800)]
populate eslint with common rules

8 years agoMerge pull request #575 from kangax/XhmikosR-patch-1
XhmikosR [Mon, 21 Mar 2016 16:43:45 +0000 (18:43 +0200)]
Merge pull request #575 from kangax/XhmikosR-patch-1

Update README.md

8 years agoUpdate README.md
XhmikosR [Mon, 21 Mar 2016 13:47:09 +0000 (15:47 +0200)]
Update README.md

8 years agoMerge pull request #561 from dougmoscrop/output-from-stdin
Alex Lam S.L [Sat, 19 Mar 2016 09:36:10 +0000 (17:36 +0800)]
Merge pull request #561 from dougmoscrop/output-from-stdin

Allow -o from stdin

8 years agoadd no-throw-literal to eslint
alexlamsl [Sat, 19 Mar 2016 09:24:44 +0000 (17:24 +0800)]
add no-throw-literal to eslint

8 years agoupdate dist files
alexlamsl [Sat, 19 Mar 2016 09:24:30 +0000 (17:24 +0800)]
update dist files

8 years agofix the static analysis of Webpack
Olivier Tassinari [Fri, 18 Mar 2016 20:29:30 +0000 (21:29 +0100)]
fix the static analysis of Webpack

8 years agoMerge pull request #564 from JohnNilsson/patch-1
XhmikosR [Fri, 18 Mar 2016 11:12:45 +0000 (13:12 +0200)]
Merge pull request #564 from JohnNilsson/patch-1

Throw Error not string

8 years agoThrow Error not string
John Nilsson [Thu, 17 Mar 2016 22:28:13 +0000 (23:28 +0100)]
Throw Error not string

Got bitten by the silent treatment from html-loader (another fix for the same issue https://github.com/webpack/html-loader/pull/57 )

8 years agoMerge pull request #558 from jshcrowthe/bugfix-phrasing-content-ignore
Juriy Zaytsev [Thu, 17 Mar 2016 20:22:18 +0000 (16:22 -0400)]
Merge pull request #558 from jshcrowthe/bugfix-phrasing-content-ignore

Handle phrasing content only for known tags

8 years agoAllow -o from stdin
Doug Moscrop [Thu, 17 Mar 2016 18:37:32 +0000 (14:37 -0400)]
Allow -o from stdin

8 years agoRefactor use of [].indexOf() -> makeMap
Josh Crowther [Thu, 17 Mar 2016 15:21:45 +0000 (09:21 -0600)]
Refactor use of [].indexOf() -> makeMap

8 years agoRefactor phrasing content parsing to only parse known HTML tags
Josh Crowther [Wed, 16 Mar 2016 21:59:02 +0000 (15:59 -0600)]
Refactor phrasing content parsing to only parse known HTML tags

8 years agoupdate version display on web
Alex Lam S.L [Wed, 16 Mar 2016 21:16:39 +0000 (05:16 +0800)]
update version display on web

8 years agoVersion 1.3.0
Juriy Zaytsev [Wed, 16 Mar 2016 19:22:05 +0000 (15:22 -0400)]
Version 1.3.0

8 years agoMerge pull request #556 from julmot/gh-pages
Juriy Zaytsev [Wed, 16 Mar 2016 16:43:05 +0000 (12:43 -0400)]
Merge pull request #556 from julmot/gh-pages

Update "Remove optional tags" to include </p>

8 years agoMerge pull request #537 from alexlamsl/run-web-test
Juriy Zaytsev [Tue, 15 Mar 2016 19:03:01 +0000 (15:03 -0400)]
Merge pull request #537 from alexlamsl/run-web-test

run browser-based tests

8 years agorun web tests in grunt
alexlamsl [Sat, 5 Mar 2016 10:49:04 +0000 (18:49 +0800)]
run web tests in grunt
remove unused devDependencies

8 years agoMerge pull request #531 from alexlamsl/web-minifyJS
Juriy Zaytsev [Tue, 15 Mar 2016 18:34:31 +0000 (14:34 -0400)]
Merge pull request #531 from alexlamsl/web-minifyJS

fix minifyJS when used outside of Node.js

8 years agoUpdate "Remove optional tags" to include </p>
Julian Motz [Tue, 15 Mar 2016 17:29:34 +0000 (18:29 +0100)]
Update "Remove optional tags" to include </p>

closes #555

8 years agopackage UglifyJS via browserify
alexlamsl [Fri, 4 Mar 2016 07:19:01 +0000 (15:19 +0800)]
package UglifyJS via browserify
remove code duplication in minifyJS()

8 years agoremove unused default fields
alexlamsl [Thu, 3 Mar 2016 21:09:20 +0000 (05:09 +0800)]
remove unused default fields

8 years agopopulate minifyJS defaults
alexlamsl [Thu, 3 Mar 2016 20:59:35 +0000 (04:59 +0800)]
populate minifyJS defaults

8 years agofix minifyJS when used online
alexlamsl [Thu, 3 Mar 2016 20:51:28 +0000 (04:51 +0800)]
fix minifyJS when used online
refactor minify{URLs,JS,CSS} to reduce evaluation overheads

8 years agoMerge pull request #554 from alexlamsl/eslint
Alex Lam S.L [Tue, 15 Mar 2016 16:14:25 +0000 (00:14 +0800)]
Merge pull request #554 from alexlamsl/eslint

replace jscs & jshint with eslint

8 years agoclean up env
alexlamsl [Tue, 15 Mar 2016 15:53:37 +0000 (23:53 +0800)]
clean up env

8 years agoremove jscs & jshint from grunt test
alexlamsl [Tue, 15 Mar 2016 13:29:54 +0000 (21:29 +0800)]
remove jscs & jshint from grunt test

8 years agoadd eslint to grunt test
alexlamsl [Tue, 15 Mar 2016 13:25:00 +0000 (21:25 +0800)]
add eslint to grunt test

8 years agoMerge pull request #553 from alexlamsl/issue-551
Juriy Zaytsev [Tue, 15 Mar 2016 02:33:26 +0000 (22:33 -0400)]
Merge pull request #553 from alexlamsl/issue-551

fix collapseWhitespace on attributes which contains custom fragments

8 years agofix collapseWhitespace on attributes which contains custom fragments
alexlamsl [Mon, 14 Mar 2016 11:30:26 +0000 (19:30 +0800)]
fix collapseWhitespace on attributes which contains custom fragments
fixes #551

8 years agoMerge pull request #543 from alexlamsl/parser-tag-name
Juriy Zaytsev [Sun, 13 Mar 2016 14:44:48 +0000 (10:44 -0400)]
Merge pull request #543 from alexlamsl/parser-tag-name

allow XML tag names

8 years agouse ncname to implement QName
alexlamsl [Fri, 11 Mar 2016 09:14:03 +0000 (17:14 +0800)]
use ncname to implement QName

8 years agofixes #248
alexlamsl [Mon, 7 Mar 2016 16:01:56 +0000 (00:01 +0800)]
fixes #248

8 years agoMerge pull request #540 from alexlamsl/parser-end-tag
Juriy Zaytsev [Thu, 10 Mar 2016 18:56:01 +0000 (13:56 -0500)]
Merge pull request #540 from alexlamsl/parser-end-tag

Omit auto-generated tags

8 years agoupdate docs and benchmark conf
alexlamsl [Mon, 7 Mar 2016 10:51:11 +0000 (18:51 +0800)]
update docs and benchmark conf

8 years agoimplement includeAutoGeneratedTags
alexlamsl [Mon, 7 Mar 2016 08:58:49 +0000 (16:58 +0800)]
implement includeAutoGeneratedTags

8 years agoremove cleanAttributes from tests
alexlamsl [Mon, 7 Mar 2016 08:57:57 +0000 (16:57 +0800)]
remove cleanAttributes from tests
options has been deprecated

8 years agoMerge pull request #542 from alexlamsl/attr-perf
Juriy Zaytsev [Wed, 9 Mar 2016 18:38:53 +0000 (13:38 -0500)]
Merge pull request #542 from alexlamsl/attr-perf

improve attribute parsing for conformance and performance

8 years agocombine start tag and attribute parsing
alexlamsl [Wed, 9 Mar 2016 14:05:36 +0000 (22:05 +0800)]
combine start tag and attribute parsing
test performance 17s --> 1.4s

8 years agoimprove attribute parsing for conformance and performance
alexlamsl [Mon, 7 Mar 2016 15:19:19 +0000 (23:19 +0800)]
improve attribute parsing for conformance and performance
fixes #289
fixes #534

8 years agoMerge pull request #541 from alexlamsl/phrasing-content
Juriy Zaytsev [Wed, 9 Mar 2016 01:13:28 +0000 (20:13 -0500)]
Merge pull request #541 from alexlamsl/phrasing-content

handle tags with phrasing content model

8 years agoadd HTML5 tags which can only contain phrasing contents
alexlamsl [Mon, 7 Mar 2016 10:03:36 +0000 (18:03 +0800)]
add HTML5 tags which can only contain phrasing contents

8 years agohandle tags with phrasing content model
alexlamsl [Mon, 7 Mar 2016 09:36:53 +0000 (17:36 +0800)]
handle tags with phrasing content model

8 years agoMerge pull request #539 from alexlamsl/iframe-srcdoc
Alex Lam S.L [Sun, 6 Mar 2016 23:55:52 +0000 (07:55 +0800)]
Merge pull request #539 from alexlamsl/iframe-srcdoc

iframe can have srcdoc instead of src

8 years agoiframe can have srcdoc instead of src
alexlamsl [Sun, 6 Mar 2016 23:48:44 +0000 (07:48 +0800)]
iframe can have srcdoc instead of src

8 years agoMerge pull request #538 from alexlamsl/issue-536
Juriy Zaytsev [Sun, 6 Mar 2016 23:16:44 +0000 (18:16 -0500)]
Merge pull request #538 from alexlamsl/issue-536

don't remove meaningful empty elements

8 years agoapplet tags can be empty
alexlamsl [Sun, 6 Mar 2016 22:23:34 +0000 (06:23 +0800)]
applet tags can be empty
improve code reuse

8 years agoobject tags can be empty
alexlamsl [Sun, 6 Mar 2016 22:15:30 +0000 (06:15 +0800)]
object tags can be empty

8 years agodon't remove meaningful empty elements
alexlamsl [Sun, 6 Mar 2016 13:57:42 +0000 (21:57 +0800)]
don't remove meaningful empty elements
fixes #536

8 years agoupdate devDependencies
Alex Lam S.L [Sun, 6 Mar 2016 07:13:11 +0000 (15:13 +0800)]
update devDependencies

lzma 2.3.0

8 years agoMerge pull request #533 from alexlamsl/issue-532
Juriy Zaytsev [Fri, 4 Mar 2016 19:20:49 +0000 (14:20 -0500)]
Merge pull request #533 from alexlamsl/issue-532

cli.js processDirectory() fix

8 years agofixes #532
alexlamsl [Fri, 4 Mar 2016 05:39:29 +0000 (13:39 +0800)]
fixes #532

8 years agoupdate to qunit 1.22.0
alexlamsl [Fri, 4 Mar 2016 17:59:48 +0000 (01:59 +0800)]
update to qunit 1.22.0

8 years agoupdate devDependencies
alexlamsl [Fri, 4 Mar 2016 17:57:51 +0000 (01:57 +0800)]
update devDependencies

8 years agoMerge pull request #530 from alexlamsl/grunt-assets
XhmikosR [Thu, 3 Mar 2016 18:00:13 +0000 (20:00 +0200)]
Merge pull request #530 from alexlamsl/grunt-assets

implement grunt assets target

8 years agoimplement grunt assets target
alexlamsl [Thu, 3 Mar 2016 17:38:37 +0000 (01:38 +0800)]
implement grunt assets target

8 years agoUpdate README.md
XhmikosR [Thu, 3 Mar 2016 17:33:16 +0000 (19:33 +0200)]
Update README.md

Move Gitter badge to the top and use shields.io for consistency.

[ci skip]

8 years agoMerge pull request #528 from alexlamsl/web-removeTagWhitespace
Alex Lam S.L [Thu, 3 Mar 2016 06:03:03 +0000 (14:03 +0800)]
Merge pull request #528 from alexlamsl/web-removeTagWhitespace

enable removeTagWhitespace on web version

8 years agoenable removeTagWhitespace on web version
alexlamsl [Thu, 3 Mar 2016 05:54:46 +0000 (13:54 +0800)]
enable removeTagWhitespace on web version

8 years agoupdate benchmark results
alexlamsl [Thu, 3 Mar 2016 05:18:45 +0000 (13:18 +0800)]
update benchmark results

8 years agoupdate assets
alexlamsl [Thu, 3 Mar 2016 05:06:35 +0000 (13:06 +0800)]
update assets
stream-http 2.2.0

8 years agoMerge pull request #521 from alexlamsl/script-type
Alex Lam S.L [Thu, 3 Mar 2016 00:16:47 +0000 (08:16 +0800)]
Merge pull request #521 from alexlamsl/script-type

improve whitespace handling in type attributes

8 years agoclean <script type="..."> attribute value
alexlamsl [Wed, 2 Mar 2016 10:31:53 +0000 (18:31 +0800)]
clean <script type="..."> attribute value

8 years agoexpand detection range for removeScriptTypeAttributes
alexlamsl [Wed, 2 Mar 2016 10:16:22 +0000 (18:16 +0800)]
expand detection range for removeScriptTypeAttributes

8 years agoimprove whitespace handling in type attributes
alexlamsl [Wed, 2 Mar 2016 06:03:09 +0000 (14:03 +0800)]
improve whitespace handling in type attributes

8 years agoMerge pull request #525 from alexlamsl/inline-comment
Alex Lam S.L [Wed, 2 Mar 2016 23:56:22 +0000 (07:56 +0800)]
Merge pull request #525 from alexlamsl/inline-comment

fix whitespace between comments followed by tags

8 years agoupdate devDependencies
Alex Lam S.L [Wed, 2 Mar 2016 22:55:54 +0000 (06:55 +0800)]
update devDependencies

grunt-jscs 2.8.0

8 years agoclarify squashTrailingWhitespace()
alexlamsl [Wed, 2 Mar 2016 17:49:49 +0000 (01:49 +0800)]
clarify squashTrailingWhitespace()

8 years agooptimise regex
alexlamsl [Wed, 2 Mar 2016 08:35:43 +0000 (16:35 +0800)]
optimise regex

8 years agocollapseWhitespace across comments
alexlamsl [Wed, 2 Mar 2016 08:11:54 +0000 (16:11 +0800)]
collapseWhitespace across comments
even when removeComments is turned off

8 years agofix collapseWhitespace & removeEmptyElements
alexlamsl [Wed, 2 Mar 2016 08:06:55 +0000 (16:06 +0800)]
fix collapseWhitespace & removeEmptyElements
trailing whitespace combined with start tag

8 years agoMerge pull request #520 from alexlamsl/parser-perf
Juriy Zaytsev [Wed, 2 Mar 2016 22:06:05 +0000 (17:06 -0500)]
Merge pull request #520 from alexlamsl/parser-perf

improve parser performance

8 years agoimprove parser performance
alexlamsl [Wed, 2 Mar 2016 05:58:44 +0000 (13:58 +0800)]
improve parser performance

8 years agoMerge pull request #524 from alexlamsl/issue-499
Juriy Zaytsev [Wed, 2 Mar 2016 20:56:41 +0000 (15:56 -0500)]
Merge pull request #524 from alexlamsl/issue-499

Conditional Comments

8 years agoMerge pull request #527 from gitter-badger/gitter-badge
Juriy Zaytsev [Wed, 2 Mar 2016 20:45:29 +0000 (15:45 -0500)]
Merge pull request #527 from gitter-badger/gitter-badge

Add a Gitter chat badge to README.md

8 years agoAdd Gitter badge
The Gitter Badger [Wed, 2 Mar 2016 20:43:17 +0000 (20:43 +0000)]
Add Gitter badge

8 years agoencapsulate minify() internal parameters
alexlamsl [Wed, 2 Mar 2016 09:59:17 +0000 (17:59 +0800)]
encapsulate minify() internal parameters

8 years agohandle partial markups and bubbling hack
alexlamsl [Tue, 1 Mar 2016 19:44:38 +0000 (03:44 +0800)]
handle partial markups and bubbling hack
fixes #157
fixes #499

8 years agoprocess conditional comments as markups
alexlamsl [Tue, 1 Mar 2016 19:19:26 +0000 (03:19 +0800)]
process conditional comments as markups
fixes #225
fixes #274

8 years agoMerge pull request #522 from alexlamsl/simplify-boolean
Juriy Zaytsev [Wed, 2 Mar 2016 17:48:23 +0000 (12:48 -0500)]
Merge pull request #522 from alexlamsl/simplify-boolean

simplify isBooleanAttribute

8 years agosimplify isBooleanAttribute
alexlamsl [Wed, 2 Mar 2016 06:06:56 +0000 (14:06 +0800)]
simplify isBooleanAttribute

8 years agoMerge pull request #526 from alexlamsl/travis-grunt-cli
XhmikosR [Wed, 2 Mar 2016 12:23:15 +0000 (14:23 +0200)]
Merge pull request #526 from alexlamsl/travis-grunt-cli

remove global installation of grunt-cli

8 years agoremove global installation of grunt-cli
alexlamsl [Wed, 2 Mar 2016 11:44:52 +0000 (19:44 +0800)]
remove global installation of grunt-cli

8 years agoMerge pull request #519 from alexlamsl/inline-whitespace
Juriy Zaytsev [Tue, 1 Mar 2016 20:56:23 +0000 (15:56 -0500)]
Merge pull request #519 from alexlamsl/inline-whitespace

handle whitespace within and around inline tags

8 years agouse String.slice() instead of substr()
alexlamsl [Tue, 1 Mar 2016 19:54:23 +0000 (03:54 +0800)]
use String.slice() instead of substr()

8 years agomore permissive trailing whitespace detection
alexlamsl [Tue, 1 Mar 2016 19:52:50 +0000 (03:52 +0800)]
more permissive trailing whitespace detection

8 years agoimprove handling of trailing inline whitespace
alexlamsl [Tue, 1 Mar 2016 11:25:01 +0000 (19:25 +0800)]
improve handling of trailing inline whitespace

8 years agouse single array to store minification fragments
alexlamsl [Tue, 1 Mar 2016 10:59:42 +0000 (18:59 +0800)]
use single array to store minification fragments

8 years agohandle whitespace within and around inline tags
alexlamsl [Tue, 1 Mar 2016 10:30:07 +0000 (18:30 +0800)]
handle whitespace within and around inline tags

8 years agoupdate assets
alexlamsl [Tue, 1 Mar 2016 15:05:16 +0000 (23:05 +0800)]
update assets
clean-css 3.4.10

8 years agoUpdate README.md
XhmikosR [Tue, 1 Mar 2016 08:16:36 +0000 (10:16 +0200)]
Update README.md

[ci skip]

8 years agoMerge pull request #517 from alexlamsl/issue-18
Juriy Zaytsev [Tue, 1 Mar 2016 05:34:03 +0000 (00:34 -0500)]
Merge pull request #517 from alexlamsl/issue-18

incorporate tests from PHPTAL

8 years agoincorporate tests from PHPTAL
alexlamsl [Mon, 29 Feb 2016 18:44:22 +0000 (02:44 +0800)]
incorporate tests from PHPTAL
fixes #18