lib/jekyll/assets.rb in jekyll-assets-3.0.3 vs lib/jekyll/assets.rb in jekyll-assets-3.0.4

- old
+ new

@@ -16,8 +16,9 @@ require vv end } end require_relative "assets/env" -Jekyll::Hooks.register :site, :post_read do |o| - Jekyll::Assets::Env.new(o) +Jekyll::Hooks.register(:site, :post_read) { |o| Jekyll::Assets::Env.new(o) } +Jekyll::Hooks.register :site, :post_write do |o| + o&.sprockets&.write_all end