Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

laravel-elixir-footer

This is a simple footer banner wrapper around Laravel Elixir. Add it to your Elixir-enhanced Gulpfile, like so:

Install

npm install --save-dev laravel-elixir-footer

Usage

This will scan your public directory for all css/js files and add a given footer message to the files.

Example Gulpfile:

var elixir = require('laravel-elixir');

require('laravel-elixir-footer');

elixir(function(mix) {
   mix.footer('\n/** ABC Solutions - 2015 */\n');
});

Advanced example

In second argument you could pass data to be used in the banner.

var pkg = require('./composer.json');
var banner = ['/**',
  ' * <%= pkg.name %> - <%= pkg.description %>',
  ' * @version v<%= pkg.version %>',
  ' * @link <%= pkg.homepage %>',
  ' * @license <%= pkg.license %>',
  ' */',
  ''].join('\n');

mix.footer(banner, { pkg : pkg });

For more examples please refer to the documentation for the gulp-footer package.

About

Laravel Elixir wrapper around footer Gulp task.

Resources

License

Packages

No packages published