2017 © Pedro Peláez
 

library asset

Asset workflow for laravel using grunt.

image

andheiberg/asset

Asset workflow for laravel using grunt.

  • Monday, May 19, 2014
  • by AndreasHeiberg
  • Repository
  • 1 Watchers
  • 3 Stars
  • 248 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Asset

Simple asset workflow for laravel using gulp and blade helpers., (*1)

Gulpfile and asset helpers for laravel. This will: - Compile scss (sass) - Allow you to concatinate js files with browserify - Minify scss and js - Work with LiveReload - Add cachebusting cashes to each url - Minify images - Add artisan asset:watch and artisan asset:build, (*2)

Installation

Run composer require andheiberg/asset:1.*, (*3)

Add 'Andheiberg\Asset\AssetServiceProvider', to providers in app/config/app.php, (*4)

Run php artisan asset:setup, (*5)

Run php artisan asset:build or php artisan asset:watch, (*6)

Add the following to you .htaccess or php.ini (add before laravels), (*7)

<IfModule mod_rewrite.c>
    # Remove cachebuster hash from request URLs if present
    RewriteRule ^(.+)\.([a-zA-Z\d]+)\.(js|css|png|jpg|gif)$ $1.$3 [L]
</IfModule>

View helpers/Blade helpers

Get cachebuster url to asset., (*8)

{{ Asset::url('/assets/css/main.css') }}

@asset('/assets/css/main.css')

// both returns '/assets/css/main.59b29833cff2003c9981ad1359777815.css'

Get cachebuster url to css asset., (*9)

{{ Asset::css('main') }}

@css('main')

// both returns '<link rel="stylesheet" href="/assets/css/main.59b29833cff2003c9981ad1359777815.css">'

Get cachebuster url to js asset., (*10)

{{ Asset::js('main') }}

@js('main')

// both returns '<script src="/assets/js/main.d41d8cd98f00b204e9800998ecf8427e.js"></script>'

The Versions

19/05 2014

2.0.x-dev

2.0.9999999.9999999-dev

Asset workflow for laravel using grunt.

  Sources   Download

The Requires

 

laravel grunt asset

19/05 2014

dev-master

9999999-dev

Asset workflow for laravel using grunt.

  Sources   Download

The Requires

 

laravel grunt asset

19/05 2014

2.0.0

2.0.0.0

Asset workflow for laravel using grunt.

  Sources   Download

The Requires

 

laravel grunt asset

19/03 2014

1.0.x-dev

1.0.9999999.9999999-dev

Asset workflow for laravel using grunt.

  Sources   Download

The Requires

 

laravel grunt asset

19/03 2014

1.0.4

1.0.4.0

Asset workflow for laravel using grunt.

  Sources   Download

The Requires

 

laravel grunt asset

13/02 2014

1.0.3

1.0.3.0

Asset workflow for laravel using grunt.

  Sources   Download

The Requires

 

laravel grunt asset

13/02 2014

1.0.2

1.0.2.0

Asset workflow for laravel using grunt.

  Sources   Download

The Requires

 

laravel grunt asset

30/12 2013

1.0.1

1.0.1.0

Asset workflow for laravel using grunt.

  Sources   Download

The Requires

 

30/12 2013

1.0

1.0.0.0

Asset helpers for laravel.

  Sources   Download

The Requires