diff --git a/middleman-more/lib/middleman-more/extensions/minify_css.rb b/middleman-more/lib/middleman-more/extensions/minify_css.rb index f5914f2d..7cec5461 100644 --- a/middleman-more/lib/middleman-more/extensions/minify_css.rb +++ b/middleman-more/lib/middleman-more/extensions/minify_css.rb @@ -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 diff --git a/middleman-more/lib/middleman-more/extensions/minify_javascript.rb b/middleman-more/lib/middleman-more/extensions/minify_javascript.rb index c3c6e0bf..fb174ce1 100644 --- a/middleman-more/lib/middleman-more/extensions/minify_javascript.rb +++ b/middleman-more/lib/middleman-more/extensions/minify_javascript.rb @@ -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