use Mojolicious::Lite; use lib '../lib/'; plugin('StaticCompressor'); get '/' => sub { my $self = shift; $self->render('index'); }; app->start; # $ morbo example.pl # Let's access to http://localhost:3000/ with your browser. __DATA__ @@ index.html.ep Example for Mojolicious::Plugin::StaticCompressor <%= js '/js/foo.js', '/js/bar.js' %> <%= css '/css/style.css' %>

Example for Mojolicious::Plugin::StaticCompressor

See this page source (html-source) with your browser.
In this page, compressed and imported a js-files (two file was combined) and css-file.

Also, you can watch a raw js-files in here: /js/foo.js, /js/bar.js,
And raw css-file in here: /css/style.css