Skip to content

Commit

Permalink
Use gulp-clean-css
Browse files Browse the repository at this point in the history
Use gulp-clean-css instead of gulp-cssmin.
This explicitly resolves WS-2019-0017. It also implicitly resolves CVE-2019-10744 because it removes lodash.template.
  • Loading branch information
tpetchel committed Oct 14, 2019
1 parent 44f4471 commit cb315af
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 436 deletions.
2 changes: 1 addition & 1 deletion Tailspin.SpaceGame.Web/wwwroot/css/site.min.css

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

4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const gulp = require("gulp"),
rimraf = require("rimraf"),
concat = require("gulp-concat"),
cssmin = require("gulp-cssmin"),
cleanCSS = require("gulp-clean-css"),
uglify = require("gulp-uglify");

const paths = {
Expand Down Expand Up @@ -32,7 +32,7 @@ gulp.task("min:js", () => {
gulp.task("min:css", () => {
return gulp.src([paths.css, "!" + paths.minCss])
.pipe(concat(paths.concatCssDest))
.pipe(cssmin())
.pipe(cleanCSS())
.pipe(gulp.dest("."));
});

Expand Down
Loading

0 comments on commit cb315af

Please sign in to comment.