From 890c6b5ee3cd270b89a7d7b4f8716c57a6026edd Mon Sep 17 00:00:00 2001 From: Gjore Milevski Date: Wed, 15 Jan 2025 12:26:25 +0100 Subject: [PATCH] Update the USWDS gulp task for copying assets --- gulpfile.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 62552581c..d91268eff 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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.