Skip to content

Commit 18e4579

Browse files
Fix global nav dropdowns in Safari (#172)
1 parent e18c7fb commit 18e4579

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gulp.d/tasks/build.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ module.exports = (src, dest, preview) => () => {
8282
vfs
8383
.src('js/vendor/*([^.])?(.bundle).js', { ...opts, read: false })
8484
.pipe(bundle(opts))
85-
.pipe(uglify({ output: { comments: /^! / } }))
85+
// .pipe(uglify({ output: { comments: /^! / } }))
86+
.pipe(map((file) => file.relative === 'js/vendor/floatingui.js')
87+
? through() : uglify({ output: { comments: /^! / } }))
8688
.pipe(gulpif(!preview, hash({ template: '<%= name %>-<%= hash %><%= ext %>' })))
8789
.pipe(vfs.dest(dest))
8890
.pipe(gulpif(!preview, hash.manifest('assets-manifest.json', { append: true })))

0 commit comments

Comments
 (0)