Fix :ignore option for minify extensions
This commit is contained in:
parent
399af44c71
commit
aaf90be163
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ class Middleman::Extensions::MinifyCss < ::Middleman::Extension
|
||||||
|
|
||||||
# Setup Rack middleware to minify CSS
|
# Setup Rack middleware to minify CSS
|
||||||
app.use Rack, :compressor => chosen_compressor,
|
app.use Rack, :compressor => chosen_compressor,
|
||||||
:ignore => options[:ignore] + [/\.min\./],
|
:ignore => Array(options[:ignore]) + [/\.min\./],
|
||||||
:inline => options[:inline]
|
:inline => options[:inline]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ class Middleman::Extensions::MinifyJavascript < ::Middleman::Extension
|
||||||
|
|
||||||
# Setup Rack middleware to minify CSS
|
# Setup Rack middleware to minify CSS
|
||||||
app.use Rack, :compressor => chosen_compressor,
|
app.use Rack, :compressor => chosen_compressor,
|
||||||
:ignore => options[:ignore] + [/\.min\./],
|
:ignore => Array(options[:ignore]) + [/\.min\./],
|
||||||
:inline => options[:inline]
|
:inline => options[:inline]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue