2017 © Pedro Peláez
 

library asset-combiner

An asset combiner for PHP

image

tystuyfzand/asset-combiner

An asset combiner for PHP

  • Saturday, May 26, 2018
  • by tystuyfzand
  • Repository
  • 1 Watchers
  • 0 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 110 % Grown

The README.md

Asset Combiner for Laravel

OctoberCMS' Asset Combiner for Laravel, with a few extra features., (*1)

Why

Compiling LESS/SASS/JS is a pain, especially during development. In many projects I found that this feature of OctoberCMS simplified a lot of the hassle., (*2)

What changed

Compiled scripts/styles can be uploaded to storage, allowing use from a CDN or local storage., (*3)

Support for other forms of caching and output are planned, along with many more features., (*4)

Installing

Install the package:, (*5)

composer require tystuyfzand/assetcombiner

If you intend to use the controller option for generating files, register the route:, (*6)

Route::get('/combine/{file}', 'AssetCombiner\Controllers\CombinerController');

Publis the config:, (*7)

php artisan vendor:publish --provider="AssetCombiner\\AssetCombinerServiceProvider"

Using

In your code or template, you can combine a list of files:, (*8)

CombineAssets::combine([ 'assets/less/file.less' ], resource_path());

Example:, (*9)

<link rel="stylesheet" href="{{ CombineAssets::combine([ 'assets/less/file.less' ], resource_path()) }}">

License

To maintain compatibility with OctoberCMS and the code borrowed/forked from the library, this library is licensed under the MIT license., (*10)

The Versions

26/05 2018
26/05 2018
26/05 2018
26/05 2018
26/05 2018
26/05 2018
26/05 2018
26/05 2018