• This repository has been archived on 06/Jan/2018
  • Stars
    star
    149
  • Rank 240,722 (Top 5 %)
  • Language
    Ruby
  • License
    MIT License
  • Created over 11 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🚨 [deprecated] Minifier plugin for jekyll. Minifies all html, js, css files. Simple just drop it in solution. No Java required

jekyll-press

Minifier plugin for jekyll. Minifies all html, js, css files. Simple just drop it in solution. No Java required.

This plugin:

  • compress html with the help of html_press
  • compress JavaScript files with the help of uglifier
  • compress css files with the help of css_press

Alternative

Gulp based workflow see: sondr3/generator-jekyllized

Installation

Bundler

Add this line to your application's Gemfile:

gem 'jekyll-press'

And then execute:

$ bundle

Standalone

Execute:

$ gem install jekyll-press

Usage

With Bundler (recomended)

Create the following plugin in your projects _plugins directory.

# _plugins/bundler.rb
require "rubygems"
require "bundler/setup"
Bundler.require(:default)

This will automatically require all of the gems specified in your Gemfile.

Standalone

Create the following plugin in your projects _plugins directory.

# _plugins/jekyll-press-plugin.rb
require 'jekyll-press'

Settings

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

TODO

  • add test: run against simple jekyll site and check if there is no errors
  • Minify JPEGs with jpegtran or smush.it (smusher)
  • Minify PNGs with optipng or smush.it (smusher)
  • Auto CSS sprites (for example sprite factory)

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

More Repositories

1

react-snap

👻 Zero-configuration framework-agnostic static prerendering for SPAs
JavaScript
5,025
star
2

react-ideal-image

🖼️ An Almost Ideal React Image Component
JavaScript
3,273
star
3

package.json

🗃️ package.json fields explained
951
star
4

css-in-js-101

💈 CSS-in-JS 101: All you need to know
249
star
5

type-o-rama

👾 JS type systems interportability
243
star
6

programming-languages-genealogical-tree

Programming languages genealogical tree
231
star
7

typescript-monorepo

HTML
153
star
8

react-modal-experiment

JavaScript
109
star
9

write-you-a-programming-language

List of small programming languages that you can implement in a relatively small amount of time for educational purposes.
99
star
10

guide-to-async-components

📖 Guide To JavaScript Async Components
79
star
11

diamondback-ruby

⛑ Fork of diamondback-ruby
Ruby
70
star
12

awesome-hiring-process

Collection of links and ideas about the hiring process in the IT industry
58
star
13

ruby-json-benchmark

Ruby json benchmark
Ruby
36
star
14

html_press

🚨 [deprecated] Ruby gem for compressing html
Ruby
35
star
15

pragmatic-types

Small practical guide on Flow and TypeScript for JavaScript developers
33
star
16

jshintrb

🚨 [deprecated] Ruby wrapper for JSHint
Ruby
31
star
17

mobile-safari-fullscreen

Fix for Mobile Safari fullscreen issue
JavaScript
23
star
18

ruby-memory-issues

🐲 Ruby Memory Issues and Where to Find Them
22
star
19

the-button

JavaScript
17
star
20

rb-fchange

🚨 [deprecated] Gem which uses native windows methods for watching changes of file system
Ruby
15
star
21

react-accessible-accordion

Accessible React accordion component
JavaScript
15
star
22

awesome-vscode-dev-containers

A curated list of VS Code Containers
15
star
23

d3-tube

D3 implementation of tube map
JavaScript
14
star
24

main-module-browser-test

Experiment
JavaScript
12
star
25

jekyll_oembed

🚨 [deprecated] Jekyll plugin to embed objects with the help of oEmbed. Simple liquid tag
Ruby
12
star
26

html_minifier

Ruby wrapper for kangax html-minifier
JavaScript
11
star
27

dev.wtf

HTML
10
star
28

headless-cms-comparison

JavaScript
9
star
29

the-history-of-frontend-development

Current state of frontend development is controversial. How we got here?
9
star
30

rb-notifu

🚨 [deprecated] Notification system for windows. Trying to be Growl
Ruby
8
star
31

sqip.macro

Webpack sqip-loader implemented as babel-plugin-macros
JavaScript
8
star
32

social_detector

Detect if visitors are logged into social networks
Ruby
8
star
33

webpack-comment-import.macro

JavaScript
7
star
34

css-modules-components

styled-components for CSS Modules
JavaScript
7
star
35

postgresql-experiment

JavaScript
6
star
36

css_press

🚨 [deprecated] Ruby gem for compressing CSS
Ruby
6
star
37

jBar2

jBar is a simple and lightweight jQuery notification (call to action) banner
JavaScript
4
star
38

useful-react-snippets

TypeScript
4
star
39

tree-sitter-wasm

Shell
4
star
40

react-async-issue

JavaScript
3
star
41

react-lingui-example

JavaScript
3
star
42

unstyled-components

styled-components based on React's style prop
JavaScript
3
star
43

github-issues

Github issues
3
star
44

react-fsm-example

JavaScript
3
star
45

react-simple-country-select

JavaScript
3
star
46

submodule

Small gem to simplify building process of gems with git submodules. Tended to be used for ruby gems which wrap js libraries or another assets
Ruby
2
star
47

zoos

Zoo is an attempt to classify things.
2
star
48

stereobooster.github.io

CSS
2
star
49

wisp

Mirror of https://hg.sr.ht/~arnebab/wisp
Scheme
2
star
50

readme

About me and my open-source work
2
star
51

cs-video

Computer science videos
2
star
52

parsing-with-derivalives

JavaScript
2
star
53

puma-benchmarks

Ruby
2
star
54

small-bits

Small bits of web UX
JavaScript
1
star
55

react-router-redux-example

JavaScript
1
star
56

docker-reasonml

Dockerfile
1
star
57

waypoint-bug-report

waypoint-bug-report
JavaScript
1
star
58

natural_sort-pgxn

Makefile
1
star
59

art_typograf

Ruby wrapper for typograf.artlebedev.ru webservice
Ruby
1
star
60

crystal-lisp

Crystal
1
star
61

main-module-browser

1
star
62

explain-you-mysql

JavaScript
1
star
63

loadable-components.macro

JavaScript
1
star
64

jekyll-seo-lint

Jekyll plugin to validate metadata provided in front matter and in configuration
Ruby
1
star
65

jevix

mirror of http://jevix.googlecode.com/svn/
PHP
1
star
66

jekyll_press

moved to https://github.com/stereobooster/jekyll-press
Ruby
1
star
67

react-ts-experiment

TypeScript
1
star