
MinifyX 
Automate compression and chaching of scrips and styles on the site.
Parameters 
| Name | Description | 
|---|---|
| &cacheFolder | folder to keep ready files. | 
| &cssFilename | basic name of ready CSS file. | 
| &cssPlaceholder | name of CSS placeholder. It is used if ®isterCss=`placeholder` | 
| &cssSources | list of CSS files for handling. «*.css», «*.less» и «*.scss» can be indicated. | 
| &forceUpdate | disable the check of file updating and every time generate new scripts and styles. | 
| &jsFilename | basic name for ready JS file. | 
| &jsPlaceholder | name of placeholder javascript. It is used if ®isterJs=`placeholder` | 
| &jsSources | list of JS files for handling. «*.js» и «*.coffee» can be indicated. | 
| &minifyCss | initiate CSS modification? | 
| &minifyJs | initiate JS modification? | 
| ®isterCss | connection of css: can be saved in placeholder «placeholder» or activated in tag <head> - «default». | 
| ®isterJs | connection of javascript: can be saved in placeholder «placeholder», activated in tag <head> - «startup» or place before closing <body> - «default». | 
Samples 
Output of snippet with auto style registration before </head> and scripts before </body>:
modx
[[MinifyX?
  &minifyCss=`1`
  &minifyJs=`1`
  ®isterCss=`default`
  ®isterJs=`default`
  &cssSources=`
    assets/templates/himyf/css/normalize.css,
    assets/templates/himyf/css/foundation.css,
    assets/templates/himyf/css/font-awesome.css,
    assets/templates/himyf/css/app.css
  `
  &jsSources=`
    assets/templates/himyf/js/foundation.js
  `
]]Output of snippet work to placeholders &cssPlaceholder on default [[+MinifyX.css]] and &jsPlaceholder on default [[+MinifyX.javascript]]:
modx
[[MinifyX?
  &minifyCss=`1`
  &minifyJs=`1`
  &cssSources=`
    assets/templates/himyf/css/normalize.css,
    assets/templates/himyf/css/foundation.css,
    assets/templates/himyf/css/font-awesome.css,
    assets/templates/himyf/css/app.css
  `
  &jsSources=`
    assets/templates/himyf/js/foundation.js
  `
]]
[[+MinifyX.css]]
[[+MinifyX.javascript]]