Skip to content

Instantly share code, notes, and snippets.

@petehouston
Last active February 23, 2017 06:49
Show Gist options
  • Save petehouston/5d89684c949851aa93a0 to your computer and use it in GitHub Desktop.
Save petehouston/5d89684c949851aa93a0 to your computer and use it in GitHub Desktop.
Laravel Elixir extension to files/folders remove
// 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