mirror of
https://github.com/bitwarden/server.git
synced 2024-11-29 13:25:17 +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);
|
|||
|
});
|