alcodo / async-css
Laravel Package to create a dynamic critical css
dev-master
2016-06-19 10:15 UTC
Requires
- laravel/framework: ~5.1
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2024-11-28 19:02:41 UTC
README
Laravel package to create a dynamic critical css
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