]> iEval git - gruntmaster-page.git/blame - make_static.PL
Fix /pb/
[gruntmaster-page.git] / make_static.PL
CommitLineData
8798626b
MG
1#!/usr/bin/perl
2use v5.14;
3use warnings;
4
5use CSS::Minifier::XS qw//;
6use JavaScript::Minifier::XS qw//;
7
8use File::Slurp qw/read_file write_file/;
9
10mkdir 'static';
11mkdir 'static/css';
12
13my $common_css;
14$common_css .= read_file $_ for <css/*.css>;
15for (<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
22my $js;
23$js .= read_file $_ for <js/*.js>;
24write_file 'static/js.js', JavaScript::Minifier::XS::minify $js;
This page took 0.019765 seconds and 4 git commands to generate.