Skip to content

Commit

Permalink
Update the USWDS gulp task for copying assets
Browse files Browse the repository at this point in the history
  • Loading branch information
dzole0311 committed Jan 15, 2025
1 parent 66a7ab8 commit 890c6b5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,15 @@ function copyNetlifyCMS() {
return gulp.src('admin/**/*').pipe(gulp.dest('dist/admin'));
}

// Copy the USWDS image assets from node_modules to the dist directory.
// This ensures all USWDS images are available for the instances during deployment.
function copyUswdsImages() {
return uswds.copyImages();
return gulp
.src([
path.join(__dirname, 'node_modules/@uswds/uswds/dist/img/**/*'),
'node_modules/@uswds/uswds/dist/img/**/*'
])
.pipe(gulp.dest('dist/img'));
}

// Task that uses Parcel to build the library version of the VEDA UI.
Expand Down

0 comments on commit 890c6b5

Please sign in to comment.