alcodo / async-css by approached

Laravel Package to create a dynamic critical css
194
2
2
Package Data
Maintainer Username: approached
Maintainer Contact: alexejkloos@gmail.com (Alexej Kloos)
Package Create Date: 2015-12-12
Package Last Update: 2016-06-19
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-12-14 15:02:43
Package Statistics
Total Downloads: 194
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 2
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

Async Css

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