Make sure Confetti mode isn't broken

This commit is contained in:
Brady Wetherington 2024-09-04 14:42:10 +01:00
parent d43824c73e
commit 66586f13ee
2 changed files with 5 additions and 1 deletions

View file

@ -14,7 +14,6 @@ window.$ = jQuery
require('jquery-ui'); //should we export this to the window?
jQuery.fn.uitooltip = jQuery.fn.tooltip;
require('bootstrap-less');
console.error("Jquery version is: " + jQuery().jquery)
require('select2');
require('admin-lte');
require('tether');

View file

@ -72,6 +72,11 @@ mix
"./resources/assets/js/snipeit.js",
"./resources/assets/js/snipeit_modals.js",
"./node_modules/canvas-confetti/dist/confetti.browser.js",
// The general direction we have been going is to pull these via require() directly
// But this runs in only one place, is only 24k, and doesn't break the sourcemaps
// (and it needs to run in 'immediate' mode, not in 'moar_scripts'), so let's just
// leave it here. It *could* be moved to confetti-js.blade.php, but I don't think
// it helps anything if we do that.
],
"./public/js/dist/all.js"
).sourceMaps(true, 'source-map', 'source-map').version();