line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package File::Assets::Filter::Minifier::Best; |
2
|
|
|
|
|
|
|
|
3
|
9
|
|
|
9
|
|
8782
|
use strict; |
|
9
|
|
|
|
|
22
|
|
|
9
|
|
|
|
|
296
|
|
4
|
9
|
|
|
9
|
|
45
|
use warnings; |
|
9
|
|
|
|
|
105
|
|
|
9
|
|
|
|
|
372
|
|
5
|
|
|
|
|
|
|
|
6
|
9
|
|
|
9
|
|
47
|
use base qw/File::Assets::Filter::Minifier/; |
|
9
|
|
|
|
|
15
|
|
|
9
|
|
|
|
|
870
|
|
7
|
9
|
|
|
9
|
|
51
|
use File::Assets::Carp; |
|
9
|
|
|
|
|
19
|
|
|
9
|
|
|
|
|
64
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub signature { |
10
|
4
|
|
|
4
|
0
|
36
|
return "minifier-best"; |
11
|
|
|
|
|
|
|
} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
my %best; |
14
|
|
|
|
|
|
|
sub _css_minifier { |
15
|
1
|
50
|
33
|
1
|
|
21
|
return $best{css} ||= |
16
|
|
|
|
|
|
|
File::Assets::Filter::Minifier::CSS::XS->_minifier_package_is_available ? |
17
|
|
|
|
|
|
|
\&File::Assets::Filter::Minifier::CSS::XS::minify : |
18
|
|
|
|
|
|
|
\&File::Assets::Filter::Minifier::CSS::minify |
19
|
|
|
|
|
|
|
; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub _js_minifier { |
23
|
1
|
50
|
33
|
1
|
|
23
|
return $best{js} ||= |
24
|
|
|
|
|
|
|
File::Assets::Filter::Minifier::JavaScript::XS->_minifier_package_is_available ? |
25
|
|
|
|
|
|
|
\&File::Assets::Filter::Minifier::JavaScript::XS::minify : |
26
|
|
|
|
|
|
|
\&File::Assets::Filter::Minifier::JavaScript::minify |
27
|
|
|
|
|
|
|
; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |