Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
/// <binding Clean='clean, bundle' />
var gulp = require('gulp');
var del = require('del');
var concat = require("gulp-concat");
var rename = require("gulp-rename");
var uglify = require("gulp-uglify");
var concatCss = require("gulp-concat-css");
var config = {
scriptsPath: "./wwwroot/scripts/",
cssPath: "./wwwroot/css/",
depsFiles: [
cssFiles: [
// Bundle js and css
gulp.task('bundle', ['bundle:js', 'bundle:css']);
// Bundle js files
gulp.task('bundle:js', function () {
return gulp.src(config.depsFiles)
// Bundle css files
gulp.task('bundle:css', function () {
return gulp.src(config.cssFiles)
// Clean up copied scripts and generated js files
gulp.task("clean", function () {
return del([
// The default task (called when you run `gulp` from cli)
gulp.task("default", ["bundle"]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment