Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mojolicious/mojo-assetpack
:tractor: Compress and convert CSS, Less, Sass and JavaScript files
https://github.com/mojolicious/mojo-assetpack
asset-pipeline mojolicious perl
Last synced: 6 days ago
JSON representation
:tractor: Compress and convert CSS, Less, Sass and JavaScript files
- Host: GitHub
- URL: https://github.com/mojolicious/mojo-assetpack
- Owner: mojolicious
- License: artistic-2.0
- Created: 2013-09-14T20:11:56.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2024-12-06T12:22:55.000Z (17 days ago)
- Last Synced: 2024-12-13T21:29:07.690Z (9 days ago)
- Topics: asset-pipeline, mojolicious, perl
- Language: Perl
- Homepage: https://metacpan.org/pod/Mojolicious::Plugin::AssetPack
- Size: 2.38 MB
- Stars: 30
- Watchers: 17
- Forks: 31
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Mojolicious::Plugin::AssetPack [![](https://github.com/mojolicious/mojo-assetpack/workflows/linux/badge.svg)](https://github.com/mojolicious/mojo-assetpack/actions)
Compress and convert CSS, Less, Sass, JavaScript and CoffeeScript files.
```perl
use Mojolicious::Lite;# Load plugin and pipes in the right order
plugin AssetPack => {pipes => [qw(Less Sass Css CoffeeScript Riotjs JavaScript Combine)]};# define asset
app->asset->process(
# virtual name of the asset
"app.css" => (# source files used to create the asset
"sass/bar.scss",
"https://github.com/Dogfalo/materialize/blob/master/sass/materialize.scss",
)
);
```## Installation
All you need is a one-liner, it takes less than a minute.
$ curl -L https://cpanmin.us | perl - -M https://cpan.metacpan.org -n Mojolicious::Plugin::AssetPack
We recommend the use of a [Perlbrew](http://perlbrew.pl) environment.