Skip to content

alcodo/async-css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Creates a dynamic critical css in Laravel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published