Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: fix vln CVE-2021-23337 #71

Merged
merged 1 commit into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading