laravellegends / assets-generator
Generate assets for Laravel 4
Installs: 43
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
pkg:composer/laravellegends/assets-generator
Requires
- illuminate/support: 4.2.*
Requires (Dev)
- orchestra/testbench: 2.2.*
This package is not auto-updated.
Last update: 2021-03-17 20:24:33 UTC
README
#Generate Javascript and CSS files via Laravel 4 Command line
Instalation
Run composer require laravellegends/assets-generator
Add in app/config.php
:
'providers' => [ // another providers 'LaravelLegends\AssetsGenerator\Provider' ]
Usage
Now, the command is avaliable in php artisan
. Run php artisan generate:assets {path}
for create css and Javascript files.
By default, the files are created in 'public/css' and 'public/js' folders.
For example:
php artisan generate:assets users/index
The files public/css/users/index.css
and public/js/users/index.js
will be created.
Stub
For costumization, use assets-generator::config.stubs
with keys js
or css
and add a file for create default template for your assets files.