Skip to content

Commit

Permalink
build: fix vln CVE-2021-23337
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelMor25 committed May 3, 2024
1 parent f8d93a5 commit 47dcf70
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 1,021 deletions.
4 changes: 1 addition & 3 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@ const path = require('path');
const del = require('del');
const gulp = require('gulp');
const gulpStep = require('gulp-step');
const gulpif = require('gulp-if');
const eslint = require('gulp-eslint');
const mocha = require('gulp-mocha-simple');
const mustache = require('gulp-mustache');
const ll = require('gulp-ll-next');
const rename = require('gulp-rename');
const uglify = require('gulp-uglify');
const util = require('gulp-util');

gulpStep.install();

Expand Down Expand Up @@ -62,7 +60,7 @@ gulp.step('client-scripts-template-render', () => {
.src(script.wrapper)
.pipe(mustache({ source: fs.readFileSync(script.src).toString() }))
.pipe(rename(path.basename(script.src)))
.pipe(gulpif(!util.env.dev, uglify()))
.pipe(uglify())
.pipe(gulp.dest(path.dirname(script.src)));
});

Expand Down
Loading

0 comments on commit 47dcf70

Please sign in to comment.