.pipe(uncss({
html: ["dev/index.html", "prod/index.html"],
ignore: [/\w\.in/,
".fade",
".collapse",
".collapsing",
/(#|\.)navbar(\-[a-zA-Z]+)?/,
/(#|\.)dropdown(\-[a-zA-Z]+)?/,
/(#|\.)(open)/,
".modal",
".modal.fade.in",
".modal-dialog",
".modal-document",
".modal-scrollbar-measure",
".modal-backdrop.fade",
".modal-backdrop.in",
".modal.fade.modal-dialog",
".modal.in.modal-dialog",
".modal-open",
".in",
".modal-backdrop"]
}))
var getJadeDependencies = function (file) {
return require(`jade`).compileFile(file).dependencies;
};
%header.page-header
.container
= Haml::Engine.new(File.read('./includes/menu-main.haml')).render
.login
gulp.task('jade', function () {
return gulp.src(['src/jade/**/*.jade','!src/jade/**/_*.jade'])
.pipe(newer('src/jade/**/*.jade'))
.pipe(plumber())
.pipe(jade({
pretty: '\t'
}))
.on('error', console.log)
.pipe(gulp.dest('./dist/'));
});