An open API service indexing awesome lists of open source software.

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.

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.