From 220106ff6b28b13a6320e5fa2ad3351441227c2a Mon Sep 17 00:00:00 2001 From: alexjanousekGSA Date: Fri, 9 Aug 2024 09:18:50 -0600 Subject: [PATCH] Added another file --- gulpfile.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index c3893a7cf..9b0237539 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -91,7 +91,11 @@ const javascripts = () => { .pipe(dest(paths.dist + 'javascripts/')); }; -// Configure USWDS paths +const copyGtmHead = () => { + return src(paths.src + 'js/gtm_head.js') + .pipe(dest(paths.dist + 'js/')); +}; + uswds.settings.version = 3; uswds.paths.dist.css = paths.dist + 'css'; uswds.paths.dist.js = paths.dist + 'js'; @@ -99,14 +103,12 @@ uswds.paths.dist.img = paths.dist + 'img'; uswds.paths.dist.fonts = paths.dist + 'fonts'; uswds.paths.dist.theme = paths.src + 'sass/uswds'; -// Task to compile USWDS styles const styles = async () => { await uswds.compile(); }; -// Task to copy USWDS assets (optional, if needed) const copyAssets = async () => { await uswds.copyAssets(); }; -exports.default = series(styles, javascripts, copyAssets); +exports.default = series(styles, javascripts, copyGtmHead, copyAssets);