/** * Site-wide JS bundle (→ js/v4-script.min.js) — replaces the gulp `js` output. * * Vendor comes from npm (so it's `npm update`-able). The two libs with no clean npm * package (DrawFillSVG, Rainbow) are small self-exposing files under src/vendor/. * The 2,834-line scripts.js pile + modernizr are dropped (dead or npm-replaced). * Page scripts (about.js, studio.js, …) stay separate and consume these globals. */ import $ from 'jquery'; window.$ = window.jQuery = $; import * as bootstrap from 'bootstrap'; // also registers BS5 data-api (offcanvas, etc.) window.bootstrap = bootstrap; import Cookies from 'js-cookie'; window.Cookies = Cookies; import 'jquery-validation'; // → $.fn.validate (comment forms: about, single) import 'jquery-backstretch'; // → $.fn.backstretch (studio hero bg) import 'jquery-lazyload'; // → $.fn.lazyload (desk) import './vendor/drawfillsvg.js'; // self-exposes window.DrawFillSVG (about, studio) import './vendor/rainbow.js'; // self-exposes window.Rainbow (code page + data-language posts)