Add Log4perl and minification of JS and CSS files.

This commit is contained in:
2015-04-06 01:07:36 +01:00
parent 84f54a9043
commit 3792275e49
4 changed files with 78 additions and 9 deletions
+3 -1
View File
@@ -12,8 +12,10 @@ require "$FindBin::Bin/common.pl";
my $fap = File::Assets::Precompile->new(
'base_path' => "$FindBin::Bin/assets/",
'output_path' => "$FindBin::Bin/public/assets/",
'minify' => 1,
#'base_url' => 'https://cdn.example.com/public/assets/',
'base_url' => '/public/assets/',
'base_url' => '/public/assets/',
'development_mode' => 1,
);
ok( $fap, 'Got object' );
+8
View File
@@ -4,4 +4,12 @@ use strict;
use warnings;
use FindBin;
use Log::Log4perl qw(:easy);
Log::Log4perl->easy_init(
{
'level' => $TRACE,
'layout' => "%r %p %M-%L %m%n",
},
);
1;