Scroll to navigation

Mojolicious::Plugin::AssetPack::Pipe::Fetch(3pm) User Contributed Perl Documentation Mojolicious::Plugin::AssetPack::Pipe::Fetch(3pm)

NAME

Mojolicious::Plugin::AssetPack::Pipe::Fetch - Fetch related assets

SYNOPSIS

  use Mojolicious::Lite;
  plugin AssetPack => {pipes => [qw(Css Fetch)]};
  app->asset->process(
    "app.css" =>
      "https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"
  );

DESCRIPTION

Mojolicious::Plugin::AssetPack::Pipe::Fetch will look for "url()" in a CSS file and fetch the resource from the remote location.

Note that this pipe is EXPERIMENTAL and subject for change.

METHODS

process

See "process" in Mojolicious::Plugin::AssetPack::Pipe.

SEE ALSO

Mojolicious::Plugin::AssetPack.
2020-05-07 perl v5.30.0