Comments (1)
I think I found what was causing it. The jekyll-minify-html
gem seems to bring development down to a crawl. To get around this I setup the following plugin to only execute the slow gem under production builds. Reference: jekyll/jekyll#1219
Hope this helps others!
Plugin _plugins/application_mode.rb
require "bundler/setup"
# JEKYLL_ENV=production bundle exec jekyll build
class Jekyll::Site
attr_accessor :env
end
class Env < Jekyll::Generator
priority :highest
def generate(site)
site.env = ENV['JEKYLL_ENV'] || 'development'
if site.env == 'production'
Bundler.require(:production)
end
end
end
Gemfile
source 'https://rubygems.org'
ruby '2.0.0'
# ------------------------------------------------------------------------------------
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
# ------------------------------------------------------------------------------------
gem 'jekyll'
gem 's3_website'
gem 'kramdown'
gem 'guard-jekyll-plus'
# ------------------------------------------------------------------------------------
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
# ------------------------------------------------------------------------------------
group :production do
gem 'jekyll-minify-html'
end
from guard-jekyll-plus.
Related Issues (20)
- Could not find compatible versions of jekyll 0.12.1 HOT 1
- Hangs at startup HOT 1
- folders with numbers in the name break watchfile HOT 2
- Copies files that are excluded in config files HOT 6
- Scoping issue with @use_rack
- Error is: cannot load such file -- guard/guard HOT 3
- Guard Fails To Start with Jekyll Plus HOT 2
- module name does not match file path by any convention HOT 5
- LiveReload may not work with guard-jekyll-plus
- Guard init jekyll_plus doesn't work HOT 6
- ArgumentError: same file HOT 6
- Document `source` tweaking HOT 1
- Guard::JekyllPlus doesn't respond to changes anymore HOT 1
- Error - Guard Jekyll Plus in Windows 8.1 HOT 1
- LiveReload in an endless loop... ? HOT 4
- Jekyll-Plus doesn't handle if Thin gem is not installed
- handle _data files / dir? HOT 3
- compatibility with jekyll 3? HOT 2
- Config overwriting is broken HOT 1
- Draft posts rendered without layout
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from guard-jekyll-plus.