Use configurable content type for detection of minifiable content.
Squashed changes: - Prevent side effects of content type testing. - Test for inline minification in PHP files.
This commit is contained in:
parent
fbe71f51e4
commit
049dabbf15
12 changed files with 276 additions and 46 deletions
22
middleman-core/fixtures/minify-js-app/source/inline-js.php
Executable file
22
middleman-core/fixtures/minify-js-app/source/inline-js.php
Executable file
|
@ -0,0 +1,22 @@
|
|||
<?='Hello'?>
|
||||
|
||||
<script>
|
||||
;(function() {
|
||||
this;
|
||||
should();
|
||||
all.be();
|
||||
on = { one: line };
|
||||
})();
|
||||
</script>
|
||||
<script type='text/javascript'>
|
||||
//<!--
|
||||
;(function() {
|
||||
one;
|
||||
line();
|
||||
here();
|
||||
})();
|
||||
//-->
|
||||
</script>
|
||||
<script type='text/html'>
|
||||
I'm a jQuery {{template}}.
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue