Доброго всем
¡ ¡ ¡ ALL GLORY TO GLORIA ! ! !
Mojolicious::Plugin::AssetPack::Pipe::CombineFile - Store combined asset to cache file instead of memory.
$app->plugin('AssetPack::Che' => { pipes => [qw(Sass Css JavaScript CombineFile)], CombineFile => { gzip => {min_size => 1000},}, # pipe options process => { 'foo.html'=>['templates/foo.html', 'templates/bar.html',], ..., }, });
CombineFile determine config for this pipe module. Hashref has keys for format extensions and also:
gzip - options.
/assets/*topic will auto place.
Get combined asset by url
<scheme>//<host>/assets/foo.html
Mojolicious::Plugin::AssetPack::Che
Михаил Че (Mikhail Che), <mche[-at-]cpan.org>
<mche[-at-]cpan.org>
Please report any bugs or feature requests at https://github.com/mche/Mojolicious-Plugin-AssetPack-Che/issues. Pull requests also welcome.
Copyright 2016-2018 Mikhail Che.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Mojolicious::Plugin::AssetPack::Che, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::AssetPack::Che
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::AssetPack::Che
For more information on module installation, please visit the detailed CPAN module installation guide.