0034283601
Adds boilerplate files from `angularjs-gulp-browserify-boilerplate` to start work on Angular rewrite of the frontend. Change-Id: I54392c24f397496582f9d06d561d5c14a92ccbe6
19 lines
563 B
JavaScript
19 lines
563 B
JavaScript
'use strict';
|
|
|
|
var config = require('../config');
|
|
var changed = require('gulp-changed');
|
|
var gulp = require('gulp');
|
|
var gulpif = require('gulp-if');
|
|
//var imagemin = require('gulp-imagemin');
|
|
var browserSync = require('browser-sync');
|
|
|
|
gulp.task('images', function() {
|
|
|
|
return gulp.src(config.images.src)
|
|
.pipe(changed(config.images.dest)) // Ignore unchanged files
|
|
//.pipe(gulpif(global.isProd, imagemin())) // Optimize
|
|
.pipe(gulp.dest(config.images.dest))
|
|
.pipe(browserSync.reload({ stream: true, once: true }));
|
|
|
|
});
|