stereobooster / jekyll-press

🚨 [deprecated] Minifier plugin for jekyll. Minifies all html, js, css files. Simple just drop it in solution. No Java required
MIT License
148 stars 13 forks source link

Is there documentation on the available options? #12

Closed philipwalton closed 6 years ago

philipwalton commented 11 years ago

The README shows the following for the _config.yml file, but it's not clear to me what the possible options are.

jekyll-press:
  exclude: 'atom.xml' # Exclude files from processing - file name, glob pattern or array of file names and glob patterns
  js_options: {}      # js minifier options
  css_options: {}     # css minifier options
  html_options: {}    # html minifier options

Is this documented anywhere? I looked in the code and I couldn't see any places that made use of these. I checked the html_press repo, but it didn't have any documentation either.

Thanks.

stereobooster commented 11 years ago

js_options, css_options, html_options transmited to the js minifier, css minifier, html minifier accordingly. So they are depend on what minifiers you are using.

multy_js by default using uglifier. See its repo for options. multy_ccs by default using css_press. Currently it has no configurable options. multi_html by default using html_press. Options not documented. See defaults

philipwalton commented 11 years ago

Thanks, that's helpful.

philipwalton commented 11 years ago

Is there a way to turn off the JS/CSS minification? All I really want is HTML minification.

wetty commented 11 years ago

How do I exclude more then one file? exclude: 'atom.xml' Comma, or space separated list does not work

Karmac commented 11 years ago

I have the same problem, how can I exclude more than one file?

stereobooster commented 11 years ago

Try this

exclude: ['atom.xml', 'exclude/*']

exclude accept string or array of strings, where string is exact fille name or glob pattern.

pathawks commented 11 years ago

exclude: ['atom.xml', 'exclude/*']

I would expect this to exclude everything in the exclude directory, but it does not.

How can I turn off CSS minification? It has totally broken @media selectors?

stereobooster commented 11 years ago

If it can minify smoething it leaves it as is. You can just simply ignore those notices

stereobooster commented 6 years ago

project is deprecated https://github.com/stereobooster/jekyll-press/issues/35