0

How to build primefaces from source and get minimized resources(css,js)? I am using Primefaces 5.0, and use

mvn clean install

But the resources are not minimized.

primefaces.css/js
jquery-plugins.js
charts.css/js
editor.css/js
...

To make debug easier, it would be nice if there is a switch to turn on/off minimized resources during deploy.

Thanks.

eastwater
  • 4,624
  • 9
  • 49
  • 118
  • Look at how they do it for the latest PF version (since that IS minimized) and do the same. And regarding the switch, well do the same as describe before but enhance it. – Kukeltje Aug 18 '15 at 08:02
  • The blog(build from source) says mvn install, but resources are not minimized. – eastwater Aug 18 '15 at 18:34
  • If were that simple, it would have been minimized for 5.0. Look at how they 'confuigure' it in the pom and what additional files are needed etc. Than do exactely that. – Kukeltje Aug 19 '15 at 00:22
  • Do you have `maven-jsf-plugin` installed ? – Hatem Alimam Aug 19 '15 at 07:40
  • yes. they will generate jsf related files. Its live demo has minimized version. But how to build it is not documented. Unfortunately I am not familiar with pom. thanks. – eastwater Aug 19 '15 at 20:10

0 Answers0