Asset Duct for Laravel 4 - Alpha
, (*1)
The Torann/Duct package is meant to simplify the creation and maintenance of the essential assets of a Laravel based application., (*2)
Note About Laravel 5
With Laravel Elixir in Laravel 5 I'm not sure if this package will be updated to support Laravel 5. Time will tell., (*3)
Features
- Out of the box supported for LESS, CSS, and JavaScript files.
- Support for custom post processors (SCSS, CoffeeScript, etc.)
- Combining and minifying of JavaScript and CSS
- Organize assets into manifest files
- Asset fingerprinting with support for images
- Asset support inside of LESS/CSS
Installation
To get the latest version of Asset Duct simply require it in your composer.json file., (*4)
"torann/duct": "0.1.*@dev"
You'll then need to run composer install to download it and have the autoloader updated., (*5)
Once Asset Duct is installed you need to register the service provider with the application. Open up app/config/app.php and find the providers key., (*6)
Then register the service provider, (*7)
'Torann\Duct\ServiceProvider'
There is no need to add the Facade, the package will add it for you., (*8)
Create configuration file using artisan
$ php artisan config:publish torann/duct
Add to .gitignore
The local assets directory needs to be added to the .gitignore file. This reflects the asset_dir variable in the config file., (*9)
public/assets/*
Documentation
View the official documentation., (*10)
Change Log
v0.1.0 Alpha