stereobooster/jekyll-press

Minify just CSS and JS (Not HTML)

Closed this issue · 3 comments

Coysh commented

The options are limited. Are there any options to compress just the Javascript and CSS, and keep the HTML clean?

Hi, seems like dev is not updating,

I actually tried several plugins including this and cannot find a good solution.

I ended up creating rake task for minifying and it is highly customisable.

You can see it at this gist

You can just add this to your _config.yml

# Minifier
jekyll-press:
  exclude: '*.html'

The wildcard selects all html files and excludes them from the minifier

project is deprecated #35