From 6e6a596f33ee3a4b550ed9ad7d2dd62ed9b9ec23 Mon Sep 17 00:00:00 2001 From: Anshul Sirur Date: Wed, 24 Oct 2018 10:00:14 +0100 Subject: [PATCH] Fix hanging middleman There is currently an issue with middleman-autoprefixer which causes middleman to hang: middleman/middleman-autoprefixer#33 When this happens, middleman no longer responds to requests and does not refresh on source changes. Moving the `activate :autoprefixer` command into the `context.configure :build` block seems to fix this and middleman behaves normally. --- lib/govuk_tech_docs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/govuk_tech_docs.rb b/lib/govuk_tech_docs.rb index 1c80e161..9292da2b 100644 --- a/lib/govuk_tech_docs.rb +++ b/lib/govuk_tech_docs.rb @@ -29,7 +29,6 @@ module GovukTechDocs # @option options [Hash] livereload Options to pass to the `livereload` # extension. Hash with symbols as keys. def self.configure(context, options = {}) - context.activate :autoprefixer context.activate :sprockets context.activate :syntax @@ -52,6 +51,7 @@ def self.configure(context, options = {}) end context.configure :build do + activate :autoprefixer activate :minify_css activate :minify_javascript end