Skip to content

Commit 374be57

Browse files
committed
also minify css
1 parent e4ea496 commit 374be57

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

gulpfile.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ gulp.task("browserify", ["ts"], function () {
6060
}))
6161
.pipe(rename("bundle.js"))
6262
.pipe(gulp.dest("dist/bundle"))
63-
.pipe(uglify({
64-
65-
}))
63+
.pipe(uglify({}))
6664
.pipe(rename("bundle.min.js"))
6765
.pipe(gulp.dest("dist/bundle"));
6866
});
@@ -104,7 +102,10 @@ gulp.task("ts", function () {
104102
gulp.task("sass", function () {
105103
gulp.src(sassGlob)
106104
.pipe(sass().on("error", sass.logError))
107-
.pipe(gulpif(options.production, cssnano()))
105+
.pipe(rename("bundle.css"))
106+
.pipe(gulp.dest("./css"))
107+
.pipe(cssnano())
108+
.pipe(rename("bundle.min.css"))
108109
.pipe(gulp.dest("./css"));
109110
});
110111

0 commit comments

Comments
 (0)