https://github.com/lakshay2395/html-minification-maven-plugin
A simple HTML minification plugin to be used in maven projects during build process.
https://github.com/lakshay2395/html-minification-maven-plugin
beta-release html-minification java maven-plugin
Last synced: 9 months ago
JSON representation
A simple HTML minification plugin to be used in maven projects during build process.
- Host: GitHub
- URL: https://github.com/lakshay2395/html-minification-maven-plugin
- Owner: lakshay2395
- Created: 2018-02-21T17:09:17.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-22T09:16:58.000Z (over 8 years ago)
- Last Synced: 2025-10-09T22:33:39.549Z (9 months ago)
- Topics: beta-release, html-minification, java, maven-plugin
- Language: Java
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## html-minification-maven-plugin
A simple HTML minification plugin to be used in maven projects during build process. Build over [serg472/htmlcompressor](https://github.com/serg472/htmlcompressor) library, this plugin provides an easy to use plugin based configuration of the library so that simultaneous minification of html files become possible during build process only. Honestly speaking , this was a requirement in my current project.
## Usage
Below code provides a simple plugin code fragment to be placed in your pom.xml file to make this code work.
```sh
....
com.htmlminifier
html-maven-plugin
0.0.1-SNAPSHOT
package
html-minifier
src/main/java/html
src/main/java/minified-html
false
true
....
```
## Advanced Options
Optional configuration parameters (Example contains default values) -
```sh
....
...
true
true
true
true
false
false
false
false
false
false
true
true
false
true
true
....
```
## Notes
Currently, the plugin isn't there for public access on Maven repo. In the meantime, one can clone and locally build the jar of the project and use it as a beta release. Do post any issues found in plugin.