From 18e4579655a5b1910b482cff4223d48969eab22f Mon Sep 17 00:00:00 2001 From: Cole Goldsmith Date: Wed, 11 Dec 2024 12:56:49 -0600 Subject: [PATCH] Fix global nav dropdowns in Safari (#172) --- gulp.d/tasks/build.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gulp.d/tasks/build.js b/gulp.d/tasks/build.js index 92a4a4e2..03a6af5e 100644 --- a/gulp.d/tasks/build.js +++ b/gulp.d/tasks/build.js @@ -82,7 +82,9 @@ module.exports = (src, dest, preview) => () => { vfs .src('js/vendor/*([^.])?(.bundle).js', { ...opts, read: false }) .pipe(bundle(opts)) - .pipe(uglify({ output: { comments: /^! / } })) + // .pipe(uglify({ output: { comments: /^! / } })) + .pipe(map((file) => file.relative === 'js/vendor/floatingui.js') + ? through() : uglify({ output: { comments: /^! / } })) .pipe(gulpif(!preview, hash({ template: '<%= name %>-<%= hash %><%= ext %>' }))) .pipe(vfs.dest(dest)) .pipe(gulpif(!preview, hash.manifest('assets-manifest.json', { append: true })))