Minify inline JS when there are other attributes.
This commit is contained in:
parent
e7d9c8ad0e
commit
8881389b42
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ class Middleman::Extensions::MinifyJavascript < ::Middleman::Extension
|
|||
|
||||
# Only compress script tags that contain JavaScript (as opposed to
|
||||
# something like jQuery templates, identified with a "text/html" type).
|
||||
if first.include?('<script>') || first.include?('text/javascript')
|
||||
if !first.include?('type=') || first.include?('text/javascript')
|
||||
first + minify(inline_content) + last
|
||||
else
|
||||
match
|
||||
|
|
Loading…
Reference in a new issue