contain-element/gulpfile.js
2017-11-13 19:54:55 -05:00

21 lines
528 B
JavaScript

const gulp = require("gulp"),
ugly = require("gulp-uglify"),
concat = require("gulp-concat");
gulp.task("module", function() {
return gulp.src([ "contain-element.js", "module-template.js" ])
.pipe(concat("contain-element-module.js"))
.pipe(gulp.dest("./"));
});
gulp.task("minify", function() {
return gulp.src("contain-element.js")
.pipe(ugly())
.pipe(concat("contain-element.min.js"))
.pipe(gulp.dest("./"));
});
gulp.task("default", [
"module",
"minify"
]);