HTML Compressor and Minifier

HtmlCompressor is a small, fast and very easy to use Java library that minifies given HTML or XML source by removing extra whitespaces, comments and other unneeded characters without breaking the content structure. As a result pages become smaller in size and load faster. A command-line version of the compressor is also available.

License

License

GroupId

GroupId

com.github.hazendaz
ArtifactId

ArtifactId

htmlcompressor
Last Version

Last Version

1.7.3
Release Date

Release Date

Type

Type

jar
Description

Description

HTML Compressor and Minifier
HtmlCompressor is a small, fast and very easy to use Java library that minifies given HTML or XML source by removing extra whitespaces, comments and other unneeded characters without breaking the content structure. As a result pages become smaller in size and load faster. A command-line version of the compressor is also available.
Project URL

Project URL

https://github.com/hazendaz/htmlcompressor/
Project Organization

Project Organization

Jeremy Landis
Source Code Management

Source Code Management

https://github.com/hazendaz/htmlcompressor/

Download htmlcompressor

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.hazendaz/htmlcompressor/ -->
<dependency>
    <groupId>com.github.hazendaz</groupId>
    <artifactId>htmlcompressor</artifactId>
    <version>1.7.3</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.hazendaz/htmlcompressor/
implementation 'com.github.hazendaz:htmlcompressor:1.7.3'
// https://jarcasting.com/artifacts/com.github.hazendaz/htmlcompressor/
implementation ("com.github.hazendaz:htmlcompressor:1.7.3")
'com.github.hazendaz:htmlcompressor:jar:1.7.3'
<dependency org="com.github.hazendaz" name="htmlcompressor" rev="1.7.3">
  <artifact name="htmlcompressor" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.hazendaz', module='htmlcompressor', version='1.7.3')
)
libraryDependencies += "com.github.hazendaz" % "htmlcompressor" % "1.7.3"
[com.github.hazendaz/htmlcompressor "1.7.3"]

Dependencies

compile (6)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.33
org.slf4j : slf4j-simple Optional jar 1.7.33
com.google.javascript : closure-compiler Optional jar v20220104
com.google.elemental2 : elemental2-core Optional jar 1.1.0
com.google.guava : guava Optional jar 31.0.1-jre
com.yahoo.platform.yui : yuicompressor Optional jar 2.4.8

provided (9)

Group / Artifact Type Version
jakarta.servlet.jsp : jakarta.servlet.jsp-api jar 2.3.6
org.apache.velocity : velocity-engine-core jar 2.3
com.google.errorprone : error_prone_annotations jar 2.10.0
org.hibernate.validator : hibernate-validator-annotation-processor jar 6.2.1.Final
com.google.j2objc : j2objc-annotations jar 1.3
com.google.code.findbugs : jsr305 jar 3.0.2
org.gaul : modernizer-maven-annotations jar 2.3.0
org.projectlombok : lombok jar 1.18.22
com.github.spotbugs : spotbugs-annotations jar 4.5.3

test (1)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-engine jar 5.8.2

Project Modules

There are no modules declared in this project.

Versions

Version
1.7.3
1.7.2
1.7.1
1.7.0
1.6.6
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0