line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package File::Assets::Filter::Minifier::Best; |
2
|
|
|
|
|
|
|
|
3
|
9
|
|
|
9
|
|
9219
|
use strict; |
|
9
|
|
|
|
|
22
|
|
|
9
|
|
|
|
|
353
|
|
4
|
9
|
|
|
9
|
|
50
|
use warnings; |
|
9
|
|
|
|
|
22
|
|
|
9
|
|
|
|
|
306
|
|
5
|
|
|
|
|
|
|
|
6
|
9
|
|
|
9
|
|
57
|
use base qw/File::Assets::Filter::Minifier/; |
|
9
|
|
|
|
|
21
|
|
|
9
|
|
|
|
|
1004
|
|
7
|
9
|
|
|
9
|
|
57
|
use File::Assets::Carp; |
|
9
|
|
|
|
|
21
|
|
|
9
|
|
|
|
|
71
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub signature { |
10
|
4
|
|
|
4
|
0
|
28
|
return "minifier-best"; |
11
|
|
|
|
|
|
|
} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
my %best; |
14
|
|
|
|
|
|
|
sub _css_minifier { |
15
|
1
|
50
|
33
|
1
|
|
23
|
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
|
|
22
|
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; |