Minify Polymer

Plugin to minify a polymer plugin

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

fr.algofi.maven.plugins
ArtifactId

ArtifactId

polymer-minifier
Last Version

Last Version

3.2.3.MULTI-RESOURCES
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Minify Polymer
Plugin to minify a polymer plugin
Project URL

Project URL

https://github.com/algofi/polymer-minimizer
Project Organization

Project Organization

Algofi
Source Code Management

Source Code Management

https://github.com/algofi/polymer-minimizer.git

Download polymer-minifier

How to add to project

<plugin>
    <groupId>fr.algofi.maven.plugins</groupId>
    <artifactId>polymer-minifier</artifactId>
    <version>3.2.3.MULTI-RESOURCES</version>
</plugin>

Dependencies

compile (7)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.0
org.apache.logging.log4j : log4j-api jar 2.8
org.apache.logging.log4j : log4j-core jar 2.8
org.apache.logging.log4j : log4j-slf4j-impl jar 2.8
org.jsoup : jsoup jar 1.8.3
com.google.javascript : closure-compiler jar v20170124
com.yahoo.platform.yui : yuicompressor jar 2.4.8

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.4

test (3)

Group / Artifact Type Version
junit : junit jar 4.12
org.mockito : mockito-all jar 1.10.19
org.eclipse.jetty : jetty-server jar 9.4.2.v20170220

Project Modules

There are no modules declared in this project.
build: Quality Gate

This maven-plugin build a set of polymer elements into a single file and minifying each of them.

The following rules are applied

  • HTML blanks removal
  • polymer custom tag and properties minification
  • Javascript minification (version 2.x)

Usage

TODO maven configuration example

Roadmap

1.x

  • HTML minification
  • polymer custom tag and properties minification
  • single file built

2.x

Javascript minification

  • Javascript compile with Google Closure Compiler is not working

  • Use an hand made minifier that remove blanks in Javascript and rename minimized polymer component properties.

  • each source file is minified separatly and written down to the disk.

  • each minified file is also gzipped

3.x (soon)

  • CSS minification
  • CSS cleaning : removing custom css properties not used I plan to use the YUI Compressor

4.x (soon)

  • helper to diagnose your HTML imports tree and size
  • ...
fr.algofi.maven.plugins
Conseil finance informatique

Versions

Version
3.2.3.MULTI-RESOURCES
3.2.2.MULTI-RESOURCES
3.2.1.MULTI-RESOURCES
3.1
2.3.2
2.3.1
2.3
2.2
2.1
2.0