Make sure you already setup the assets module in your project!
<dependency>
<groupId>org.jooby</groupId>
<artifactId>jooby-assets-yui-compressor</artifactId>
<version>1.0.0.CR8</version>
<scope>provided</scope>
</dependency>assets {
fileset {
home: [css/home.css]
}
pipeline {
...
dist: [yui-css]
}
}
assets {
fileset {
home: [js/home.js]
}
pipeline {
...
dist: [yui-js]
}
}
assets {
...
yui-js {
munge: true
preserve-semi: true
}
}
# see also
## css processors
* [props](https://github.com/jooby-project/jooby/tree/master/jooby-assets-props): replace application properties in CSS files.
* [clean-css](https://github.com/jooby-project/jooby/tree/master/jooby-assets-clean-css): minify css.
* [csslint](https://github.com/jooby-project/jooby/tree/master/jooby-assets-csslint): check and validate css rules.
* [sass/libsass](https://github.com/jooby-project/jooby/tree/master/jooby-assets-jsass): Sass support from <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2Fbit3%2Fjsass">Java Sass Compiler (libsass)</a>.
* [sass ruby](https://github.com/jooby-project/jooby/tree/master/jooby-assets-sass): Sass support from <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2Fsass%2Fsass">Sass (ruby)</a>.
* [less4j](https://github.com/jooby-project/jooby/tree/master/jooby-assets-less4j): Less support from [less4j](https://github.com/SomMeri/less4j).
* [less](https://github.com/jooby-project/jooby/tree/master/jooby-assets-less): Less support from [less.js](http://lesscss.org).
* [svg-sprites](https://github.com/jooby-project/jooby/tree/master/jooby-assets-svg-sprites): Generates SVG sprites with PNG fallbacks via [dr-svg-sprites](https://github.com/drdk/dr-svg-sprites).
* [yui-css](https://github.com/jooby-project/jooby/tree/master/jooby-assets-yui-compressor): YUI CSS optimizer.
## js processors
* [props](https://github.com/jooby-project/jooby/tree/master/jooby-assets-props): replace application properties in JavaScript files.
* [jscs](https://github.com/jooby-project/jooby/tree/master/jooby-assets-jscs): JavaScript code style checker.
* [jshint](https://github.com/jooby-project/jooby/tree/master/jooby-assets-jshint): JavaScript linter, helps to detect errors and potential problems in code..
* [babel](https://github.com/jooby-project/jooby/tree/master/jooby-assets-babel): Ecma6 now via <a href="proxy.php?url=http%3A%2F%2Fbabeljs.io%2F">Babel</a>.
* [rollup](https://github.com/jooby-project/jooby/tree/master/jooby-assets-rollup): <a href="proxy.php?url=http%3A%2F%2Frollupjs.org%2F">rollup.js</a> the next-generation ES6 module bundler.
* [ng-annotate](https://github.com/jooby-project/jooby/tree/master/jooby-assets-ng-annotate): Add, remove and rebuild AngularJS dependency injection annotations.
* [closure-compiler](https://github.com/jooby-project/jooby/tree/master/jooby-assets-closure-compiler): Google JavaScript optimizer and minifier.
* [uglify](https://github.com/jooby-project/jooby/tree/master/jooby-assets-uglify): uglify.js optimizer.
* [requirejs](https://github.com/jooby-project/jooby/tree/master/jooby-assets-requirejs): r.js optimizer.
* [yui-js](https://github.com/jooby-project/jooby/tree/master/jooby-assets-yui-compressor): YUI JS optimizer.