Notify when Gulp builds

This commit is contained in:
Oliver Davies 2016-04-05 11:58:59 +01:00
parent 7ec30ec3d3
commit cc94525f73
2 changed files with 4 additions and 1 deletions

View file

@ -26,6 +26,7 @@ app.css = function (paths, filename) {
.pipe(config.production ? plugins.cleanCss() : plugins.util.noop())
.pipe(plugins.if(config.sourceMaps, plugins.sourcemaps.write('.')))
.pipe(gulp.dest(config.outputDir + '/css'))
.pipe(plugins.notify())
.pipe(plugins.if(config.liveReload, plugins.livereload()));
};
@ -37,7 +38,8 @@ app.js = function (paths, filename) {
.pipe(plugins.concat(filename))
.pipe(config.production ? plugins.uglify() : plugins.util.noop())
.pipe(plugins.if(config.sourceMaps, plugins.sourcemaps.write('.')))
.pipe(gulp.dest(config.outputDir + '/js'));
.pipe(gulp.dest(config.outputDir + '/js'))
.pipe(plugins.notify());
};
app.copy = function (srcFiles, outputDir) {

View file

@ -14,6 +14,7 @@
"gulp-livereload": "^3.8.1",
"gulp-load-plugins": "^1.1.0",
"gulp-minify-css": "^1.2.3",
"gulp-notify": "^2.2.0",
"gulp-plumber": "^1.0.1",
"gulp-sass": "^2.1.1",
"gulp-sass-glob": "^1.0.5",