Skip to content

Commit

Permalink
Fix hanging middleman
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Anshul Sirur committed Oct 24, 2018
1 parent c583614 commit 6e6a596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/govuk_tech_docs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -52,6 +51,7 @@ def self.configure(context, options = {})
end

context.configure :build do
activate :autoprefixer
activate :minify_css
activate :minify_javascript
end
Expand Down

0 comments on commit 6e6a596

Please sign in to comment.