lib/jekyll/webpack.rb in jekyll-webpack-0.2.0 vs lib/jekyll/webpack.rb in jekyll-webpack-0.2.1

- old
+ new

@@ -14,10 +14,10 @@ stdout, stderr, status = Open3.capture3( "../node_modules/.bin/webpack", chdir: File.expand_path(site_dest) ) - runtime_error = stdout =~ /error/i + runtime_error = stdout =~ /ERROR in|SyntaxError/ raise Error, stderr if stderr.size > 0 raise Error, stdout if !runtime_error.nil? end end