Subject: | ->include( $file => $rank ) broken for minification |
Rank is completely ignored when minifying assets, which breaks any
minified JS:
$ cat assets.pl
use strict;
use warnings;
use File::Assets;
my $ass = File::Assets->new(
base => [ 'http://foo.com', 'js' ],
minify => 'concat',
);
$ass->include( 'a.js', 10 ); # contains 'a'
$ass->include( 'b.js', 5 ); # contains 'b'
$ass->include( 'c.js', 7 ); # contains 'c'
print $ass->export . $/;
$ perl assets.pl
<script src="http://foo.com/assets-cb18abe5b1c4a17c849d3c213bd74e80.js"
type="text/javascript"></script>
$ cat js/assets-cb18abe5b1c4a17c849d3c213bd74e80.js
a
b
c