Laravel artisan console command to generate custom Modernizr builds.
hofmannsven/laravel-modernizr-command is a Laravel package for laravel artisan console command to generate custom modernizr builds..
It currently has 0 GitHub stars and 292 downloads on Packagist (latest version 0.6.4).
Install it with composer require hofmannsven/laravel-modernizr-command.
Discover more Laravel packages by hofmannsven
or browse all Laravel packages to compare alternatives.
Last updated
Laravel artisan command to generate custom Modernizr builds.
Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user's browser.
You can install the package via Composer:
composer require --dev hofmannsven/laravel-modernizr-command
Require Modernizr as a dependency in your package.json file:
npm i modernizr --save
Publish both package config files (config.php and modernizr.json):
php artisan vendor:publish --provider="Hofmannsven\Modernizr\ModernizrServiceProvider"
Example modernizr.json config file for SVG feature detection:
{
"feature-detects": [
"svg",
"svg/asimg",
"svg/clippaths",
"svg/filters",
"svg/foreignobject",
"svg/inline",
"svg/smil"
]
}
See Modernizr's config-all.json file for all detectable features.
Generate your custom Modernizr build based on your config.php and modernizr.json config files:
php artisan modernizr:generate
composer test
Please read the changelog for more information about what has changed recently.
Please read the contribution guidelines for details.
Always feel free to raise an issue on GitHub.
If you discover a security issue, please contact me directly. My GPG fingerprint/key is available on Keybase.
MIT License (MIT). Please read the license for more information.