From 6af9adb82481ff9edb20d2b9b318c4fe8d4b2515 Mon Sep 17 00:00:00 2001 From: Cole Goldsmith Date: Tue, 17 Dec 2024 12:13:02 -0600 Subject: [PATCH] undo asset hash changes and import the minfied floatingui to reduce file size slightly --- gulp.d/tasks/build.js | 8 ++++---- src/js/vendor/floatingui.bundle.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gulp.d/tasks/build.js b/gulp.d/tasks/build.js index 6157e843..ffe3f382 100644 --- a/gulp.d/tasks/build.js +++ b/gulp.d/tasks/build.js @@ -77,7 +77,7 @@ module.exports = (src, dest, preview) => () => { .pipe(concat('js/site.js')) .pipe(gulpif( !preview, - hash({ template: '<%= name %>-<%= hash %><%= ext %>', hashLength: 10, version: 'prod-35' }))) + hash({ template: '<%= name %>-<%= hash %><%= ext %>' }))) .pipe(vfs.dest(dest)) .pipe(gulpif(!preview, hash.manifest('assets-manifest.json', { append: true }))) .pipe(vfs.dest(dest)), @@ -89,7 +89,7 @@ module.exports = (src, dest, preview) => () => { ? through() : uglify({ output: { comments: /^! / } })) .pipe(gulpif( !preview, - hash({ template: '<%= name %>-<%= hash %><%= ext %>', hashLength: 10, version: 'prod-35' }))) + hash({ template: '<%= name %>-<%= hash %><%= ext %>' }))) .pipe(vfs.dest(dest)) .pipe(gulpif(!preview, hash.manifest('assets-manifest.json', { append: true }))) .pipe(vfs.dest(dest)), @@ -98,7 +98,7 @@ module.exports = (src, dest, preview) => () => { .pipe(map((file, enc, next) => next(null, Object.assign(file, { extname: '' }, { extname: '.js' })))) .pipe(gulpif( !preview, - hash({ template: '<%= name %>-<%= hash %><%= ext %>', hashLength: 10, version: 'prod-35' }))) + hash({ template: '<%= name %>-<%= hash %><%= ext %>' }))) .pipe(vfs.dest(dest)) .pipe(gulpif(!preview, hash.manifest('assets-manifest.json', { append: true }))) .pipe(vfs.dest(dest)), @@ -110,7 +110,7 @@ module.exports = (src, dest, preview) => () => { .pipe(postcss((file) => ({ plugins: postcssPlugins, options: { file } }))) .pipe(gulpif( !preview, - hash({ template: '<%= name %>-<%= hash %><%= ext %>', hashLength: 10, version: 'prod-35' }))) + hash({ template: '<%= name %>-<%= hash %><%= ext %>' }))) .pipe(vfs.dest(dest)) .pipe(gulpif(!preview, hash.manifest('assets-manifest.json', { append: true }))) .pipe(vfs.dest(dest)), diff --git a/src/js/vendor/floatingui.bundle.js b/src/js/vendor/floatingui.bundle.js index 7def5512..96b5364e 100644 --- a/src/js/vendor/floatingui.bundle.js +++ b/src/js/vendor/floatingui.bundle.js @@ -23,7 +23,7 @@ ;(function () { 'use strict' - const { computePosition, autoPlacement, shift } = require('@floating-ui/dom') + const { computePosition, autoPlacement, shift } = require('@floating-ui/dom/dist/floating-ui.dom.umd.min.js') const isTouchDevice = window.matchMedia('(pointer: coarse)').matches const hideAllDropdowns = () => {