mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
21 lines
511 B
JavaScript
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);
|
|
});
|