Fix :ignore option for minify extensions

This commit is contained in:
Ben Hollis 2013-04-28 14:08:09 -07:00
parent 399af44c71
commit aaf90be163
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ class Middleman::Extensions::MinifyCss < ::Middleman::Extension
# Setup Rack middleware to minify CSS
app.use Rack, :compressor => chosen_compressor,
:ignore => options[:ignore] + [/\.min\./],
:ignore => Array(options[:ignore]) + [/\.min\./],
:inline => options[:inline]
end

View file

@ -18,7 +18,7 @@ class Middleman::Extensions::MinifyJavascript < ::Middleman::Extension
# Setup Rack middleware to minify CSS
app.use Rack, :compressor => chosen_compressor,
:ignore => options[:ignore] + [/\.min\./],
:ignore => Array(options[:ignore]) + [/\.min\./],
:inline => options[:inline]
end