line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mojolicious::Plugin::AssetPack::Preprocessor::Css; |
2
|
2
|
|
|
2
|
|
8
|
use Mojo::Base 'Mojolicious::Plugin::AssetPack::Preprocessor'; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
14
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
sub process { |
5
|
1
|
|
|
1
|
1
|
2
|
my ($self, $assetpack, $text, $path) = @_; |
6
|
|
|
|
|
|
|
|
7
|
1
|
50
|
33
|
|
|
2
|
if ($assetpack->minify and length $$text) { |
8
|
1
|
|
|
|
|
544
|
require CSS::Minifier::XS; |
9
|
1
|
|
50
|
|
|
695
|
$$text = CSS::Minifier::XS::minify($$text) |
10
|
|
|
|
|
|
|
// die "CSS::Minifier::XS::minify could not minify $path"; |
11
|
|
|
|
|
|
|
} |
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
|
|
6
|
return $self; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
1; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=encoding utf8 |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 NAME |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
Mojolicious::Plugin::AssetPack::Preprocessor::Css - DEPRECATED |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 DESCRIPTION |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
L will be DEPRECATED. |
27
|
|
|
|
|
|
|
Use L instead. |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 METHODS |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head2 process |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 SEE ALSO |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
L. |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
L |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=cut |