alcodo/async-css

Laravel Package to create a dynamic critical css

dev-master 2016-06-19 10:15 UTC

This package is auto-updated.

Last update: 2024-11-28 19:02:41 UTC


README

License Latest Stable Version Total Downloads

Laravel package to create a dynamic critical css

Easy workflow:

Installation

Require this package with composer:

composer require alcodo/async-css

Add ServiceProvider in config/app.php

Alcodo\AsyncCss\ServiceProvider::class,
    and
'AsyncCss' => Alcodo\AsyncCss\Html\Facade::class,

Add Middleware

protected $middleware = [
    \Alcodo\AsyncCss\Middleware\AsyncCssMiddleware::class,
];

Add Commands

protected $commands = [
    \Alcodo\AsyncCss\Commands\Clear::class,
    \Alcodo\AsyncCss\Commands\Show::class,
    \Alcodo\AsyncCss\Commands\Rebuild::class,
];

Add app.balde.php

{!! asyncsss(elixir('style.css')) !!}

License

MIT