1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-26 12:55:17 +01:00
bitwarden-server/util/Mail/gulpfile.js
2017-05-31 08:32:45 -04:00

21 lines
511 B
JavaScript

/// <binding BeforeBuild='build, dist' Clean='clean' ProjectOpened='build. dist' />
var gulp = require('gulp'),
rimraf = require('rimraf'),
premailer = require('gulp-premailer');
var paths = {
dist: '../../mail_dist/',
wwwroot: './wwwroot/'
};
gulp.task('inline', ['clean'], function () {
return gulp.src(paths.wwwroot + 'templates/*.html')
.pipe(premailer())
.pipe(gulp.dest(paths.dist));
});
gulp.task('clean', function (cb) {
return rimraf(paths.dist, cb);
});