Skip to content

Commit

Permalink
♻️ Updated gulpfile
Browse files Browse the repository at this point in the history
  • Loading branch information
prateek3255 committed Mar 8, 2020
1 parent 769d7ea commit 5f14b58
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 19 deletions.
8 changes: 1 addition & 7 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const gulp = require("gulp");
const uglify = require("gulp-uglify");
const babel = require("gulp-babel");
const uglify = require("gulp-uglify-es").default;
let cleanCSS = require("gulp-clean-css");
const htmlmin = require("gulp-htmlmin");
const del = require("del");
Expand All @@ -13,11 +12,6 @@ gulp.task("clean", done => {
gulp.task("minify-scripts", done => {
gulp
.src(["*.js", "!gulpfile.js"])
.pipe(
babel({
presets: ["@babel/preset-env"]
})
)
.pipe(uglify())
.pipe(gulp.dest("build"));
done();
Expand Down
96 changes: 85 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"gulp-copy": "4.0.1",
"gulp-htmlmin": "5.0.1",
"gulp-sourcemaps": "2.6.5",
"gulp-uglify": "3.0.2"
"gulp-uglify": "3.0.2",
"gulp-uglify-es": "2.0.0"
}
}

0 comments on commit 5f14b58

Please sign in to comment.