2017 © Pedro Peláez
 

library laravel-asset-manifest

Laravel 4 package for re-mapping assets paths, useful for asset revving using tools such as grunt and/or loading assets from a CDN.

image

tappleby/laravel-asset-manifest

Laravel 4 package for re-mapping assets paths, useful for asset revving using tools such as grunt and/or loading assets from a CDN.

  • Monday, September 8, 2014
  • by tappleby
  • Repository
  • 2 Watchers
  • 5 Stars
  • 780 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Laravel Asset Manifest

Simple Laravel 4 package for re-mapping assets paths, useful for asset revving using tools such as grunt and/or loading assets from a CDN. Extends Laravel's url generator which means existing asset() or URL::asset calls will work without changes., (*1)

Build Status, (*2)

Installation

Require the tappleby/laravel-asset-manfiestin your composer.json, (*3)

$ composer require tappleby/laravel-asset-manifest:1.*

Add the AssetManifestServiceProvider to your app/config/app.php:, (*4)

'Tappleby\AssetManifest\AssetManifestServiceProvider',

Optional, (*5)

If you wish to access the asset manifest manually, the facade can be registered:, (*6)

'AssetManifest'   => 'Tappleby\AssetManifest\Facades\AssetManifest',

The default config path can be changed by publishing the config:, (*7)

$ php artisan config:publish tappleby/laravel-asset-manifest

Usage

The only requirement of this package is a manifest JSON file located at app/storage/meta/assets.json. If a key is found in the JSON file, its value will be used as the new asset path:, (*8)

{
    "src": "target",
    "foo.png": "bar.png",
    "baz.png": "//cdn.awesomehost.com/baz.png"
}

Calling asset("foo.png") in your view will return "bar.png". If the target url starts with http or // this value will be returned without passing through laravels default url generator: asset("baz.png") returns //cdn.awesomehost.com/baz.png, (*9)

This package integrates well with grunt + grunt-filerev, using the grunt-filerev-assets package the asset manfiest can automatically be generated., (*10)

License

licensed under the MIT License - see the LICENSE file for details, (*11)

The Versions

08/09 2014

dev-master

9999999-dev

Laravel 4 package for re-mapping assets paths, useful for asset revving using tools such as grunt and/or loading assets from a CDN.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Terry Appleby

laravel cdn assets

08/06 2014

1.0.2

1.0.2.0

Laravel 4 package for re-mapping assets paths, useful for asset revving using tools such as grunt and/or loading assets from a CDN.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Terry Appleby

laravel cdn assets

27/04 2014

1.0.1

1.0.1.0

Laravel 4 package for re-mapping assets paths, useful for asset revving using tools such as grunt and/or loading assets from a CDN.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Terry Appleby

laravel cdn assets

27/04 2014

1.0.0

1.0.0.0

Laravel 4 package for dynamically retargeting asset paths, useful for asset revisioning using tools such as grunt.

  Sources   Download

The Requires

 

The Development Requires

by Terry Appleby