Доброго всем
¡ ¡ ¡ ALL GLORY TO GLORIA ! ! !
Mojolicious::Plugin::AssetPack::Pipe::VueTemplateCompiler - if you like separate files vue template and vue scrtipt.
$app->plugin('AssetPack::Che' => { pipes => [qw(VueTemplateCompiler CombineFile)], VueTemplateCompiler=>{enabled=>$ENV{MOJO_ASSETPACK_VUE_TEMPLATE_COMPILER} || 0},# pipe options process => [ ['js/dist/templates/app★.js?bla'=>qw(components/foo.vue.html components/bar.vue.html)], ['app.js'=>qw('js/dist/templates/app★.js components/foo.vue.js components/bar.vue.js)], ..., ], });
Обработка файлов-шаблонов \<path|url>.vue.html пойдет только (ONLY) в режиме development.
Обработанные топики шаблонов сохраняются в пути этого топика относительно static https://metacpan.org/pod/Mojolicious#static.
В режиме production эти топики используются как обычные ассеты.
Mojolicious::Plugin::AssetPack::Che
Mojolicious::Plugin::AssetPack
Михаил Че (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 2020-2021 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.