Generate Javascript and CSS files via Laravel 4 Command line
, (*1)
Instalation, (*2)
Run composer require laravellegends/assets-generator, (*3)
Add in app/config.php:, (*4)
'providers' => [
// another providers
'LaravelLegends\AssetsGenerator\Provider'
]
Usage, (*5)
Now, the command is avaliable in php artisan. Run php artisan generate:assets {path} for create css and Javascript files., (*6)
By default, the files are created in 'public/css' and 'public/js' folders., (*7)
For example:, (*8)
php artisan generate:assets users/index
The files public/css/users/index.css and public/js/users/index.js will be created., (*9)
Stub, (*10)
For costumization, use assets-generator::config.stubs with keys js or css and add a file for create default template for your assets files., (*11)