Last active
February 23, 2017 06:49
-
-
Save petehouston/5d89684c949851aa93a0 to your computer and use it in GitHub Desktop.
Laravel Elixir extension to files/folders remove
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
// require: $ npm install --save-dev del | |
var gulp = require('gulp'); | |
var elixir = require('laravel-elixir'); | |
var del = require('del'); | |
elixir.extend("remove", function(path) { | |
gulp.task("remove", function() { | |
del(path); | |
}); | |
return this.queueTask("remove"); | |
}); | |
// Usage | |
elixir(function(mix) { | |
mix.remove([ 'public/css', 'public/js' ]); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment