-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
31 lines (25 loc) · 829 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
var gulp = require('gulp');
var footer = require('gulp-footer');
var elixir = require('laravel-elixir');
var config = elixir.config;
/*
|----------------------------------------------------------------
| Footer/Banner
|----------------------------------------------------------------
|
| Add a footer message/banner to css/js files, in your public
| directory.
|
*/
elixir.extend('footer', function(banner, data) {
new elixir.Task('footer', function () {
var files = [
config.get('public.js.outputFolder') + "/*.js",
config.get('public.css.outputFolder') + "/*.css"
];
return gulp.src(files, {base: './'})
.pipe(footer(banner, data))
.pipe(gulp.dest('./'))
.pipe(new elixir.Notification('Footer Banner Added!'));
});
});