digitalsparky / jekyll-minifier

Jekyll HTML/XML/CSS/JS Minifier utilising yui-compressor, and htmlcompressor
GNU General Public License v3.0
245 stars 25 forks source link

Exlusion fix #27

Closed sonnym closed 7 years ago

sonnym commented 7 years ago

This fixes persistent issues with excluding files. In essence, the coercion from string keys to symbol keys in output_html violated idempotency; i.e. the first attempt to get the exclude setting would work via a string, but then failed in subsequent attempts, since a symbol would be required. This pull request just uses string keys throughout.

I also greatly simplified how exclusion checking works by making use of Kernel#Array, Array#any?, and Hash#dig.

sonnym commented 7 years ago

Moved: https://github.com/digitalsparky/jekyll-minifier/pull/28