Add 'public/dist/js/gulpfile.js'

This commit is contained in:
Muhammad Iqbal Rifai 2018-07-04 10:42:10 +02:00
parent b46b6bc0d3
commit 598ecd8831
1 changed files with 1 additions and 0 deletions

1
public/dist/js/gulpfile.js vendored Normal file
View File

@ -0,0 +1 @@
let gulp=require("gulp"),cleanCSS=require("gulp-clean-css");var pump=require("pump"),htmlmin=require("gulp-htmlmin"),uglifyes=require("uglify-es"),composer=require("gulp-uglify/composer"),minify=composer(uglifyes);gulp.task("default",()=>console.log("See you in another video kids")),gulp.task("minify-css",()=>gulp.src("public/css/*.css").pipe(cleanCSS({level:{1:{specialComments:0}}})).pipe(gulp.dest("public/dist/css"))),gulp.task("compress",()=>{pump([gulp.src("./*.js"),minify(),gulp.dest("public/dist/js")])}),gulp.task("minify-html",function(){return gulp.src("views/*.ejs").pipe(htmlmin({collapseWhitespace:!0,collapseInlineTagWhitespace:!0,removeComments:!0,removeRedundantAttributes:!0,useShortDoctype:!0,html5:!0})).pipe(gulp.dest("public/dist/html"))});