]> iEval git - gruntmaster-page.git/blob - make_static.PL
Add close button styles
[gruntmaster-page.git] / make_static.PL
1 #!/usr/bin/perl
2 use v5.14;
3 use warnings;
4
5 use CSS::Minifier::XS qw//;
6 use JavaScript::Minifier::XS qw//;
7
8 use File::Slurp qw/read_file write_file/;
9
10 mkdir 'static';
11 mkdir 'static/css';
12
13 my $common_css;
14 $common_css .= read_file $_ for <css/*.css>;
15 for (<css/themes/*>) {
16 my ($theme) = m,themes/(.*)\.css,;
17 my $css = read_file $_;
18 $css .= $common_css;
19 write_file "static/css/$theme.css", CSS::Minifier::XS::minify $css;
20 }
21
22 my $js;
23 $js .= read_file $_ for <js/*.js>;
24 write_file 'static/js.js', JavaScript::Minifier::XS::minify $js;
This page took 0.052407 seconds and 4 git commands to generate.