Skip to content

Commit

Permalink
Merge pull request #48 from Banno/vuln/79-lodash
Browse files Browse the repository at this point in the history
chore(deps): replace dependencies that use vulnerable lodash.template
  • Loading branch information
jrobinson01 authored Jun 25, 2024
2 parents e61f034 + 891b1cb commit e7e9037
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 389 deletions.
2 changes: 1 addition & 1 deletion dist/css/style.min.css

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

const gulp = require('gulp');
const merge = require('merge-stream');
const header = require('gulp-header');
const prepend = require('gulp-prepend');
const rename = require('gulp-rename');
const sass = require('gulp-sass')(require('sass'));
const cssmin = require('gulp-cssmin');
const cleanCss = require('gulp-clean-css');
const svgstore = require('gulp-svgstore');
const svgmin = require('gulp-svgmin');
const connect = require('gulp-connect');
Expand Down Expand Up @@ -37,16 +37,16 @@ const copy = () => {

const styles = () => {
const banner = ['/*!',
' * <%= pkg.name %> - <%= pkg.description %>',
' * @version v<%= pkg.version %>',
' * @link <%= pkg.homepage %>',
` * ${pkg.name} - ${pkg.description}`,
` * @version v${pkg.version}`,
` * @link ${pkg.homepage}`,
'*/',
''].join('\n');

return gulp.src('src/css/core.scss')
.pipe(sass())
.pipe(cssmin())
.pipe(header(banner, { pkg: pkg }))
.pipe(cleanCss())
.pipe(prepend(banner))
.pipe(rename('style.min.css'))
.pipe(gulp.dest('dist/css'))
.pipe(connect.reload());
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
"devDependencies": {
"del": "^6.1.1",
"gulp": "^4.0.2",
"gulp-clean-css": "^4.3.0",
"gulp-connect": "^5.7.0",
"gulp-cssmin": "^0.2.0",
"gulp-header": "^2.0.9",
"gulp-imagemin": "^7.1.0",
"gulp-livereload": "^4.0.2",
"gulp-prepend": "^0.3.0",
"gulp-rename": "^2.0.0",
"gulp-sass": "^5.1.0",
"gulp-svgmin": "^4.1.0",
Expand Down
Loading

0 comments on commit e7e9037

Please sign in to comment.