Created
February 26, 2016 10:18
-
-
Save KrisTemmerman/235cd535e3dff8a1663f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var elixir = require('laravel-elixir'); | |
var gulp = require('gulp'); | |
var shell = require('gulp-shell'); | |
/* | |
|-------------------------------------------------------------------------- | |
| Elixir Asset Management | |
|-------------------------------------------------------------------------- | |
| | |
| Elixir provides a clean, fluent API for defining some basic Gulp tasks | |
| for your Laravel application. By default, we are compiling the Sass | |
| file for our application, as well as publishing vendor resources. | |
| | |
*/ | |
elixir(function(mix) { | |
/* Adds the sync task to the elixir mix */ | |
mix.task('sync','public/**/*.*') | |
}); | |
gulp.task('sync',function(){ | |
console.log('Gulp is syncing your public_html folder') | |
gulp.src(['public/**/*.*','!public/index.php']) | |
.pipe(gulp.dest('../public_html/')) | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment