<|start_filename|>assets/js/bootstrap.js<|end_filename|>
// bootstrap js is a larger library so it is downloaded async seperately
'use strict';

// bootstrap js - import the whole library
import 'bootstrap';

// example initialization from this import 
// var scrollSpy = new bootstrap.ScrollSpy(document.body, {
//   target: '#navbar-example'
// })


// alternatively only import the modules that you need from the library
// import {
//   // Alert, // Control alerts
//   // Button, // complex button toggles etc
//   // Carousel, // required for carousel
//   Collapse, // required for mobile collapse menu
//   // Dropdown, // not required for navbar only for custom dropdowns
//   // Modal, // modal popups
//   // Popover, // popovers
//   // ScrollSpy, // auto update active link for 1 page sites
//   // Tab, // Tabs
//   // Toast, // Toasts
//   // Tooltip , // Tooltips
// } from 'bootstrap';

// example initialization from this import 
// const scrollSpy = new ScrollSpy(document.body, {
//   target: '#js-navParent',
// });

<|start_filename|>layouts/partials/footer/script-footer.html<|end_filename|>
{{ partial "footer/esbuild" (dict "src" "js/bootstrap.js" "load" "async" "transpile" false) -}}
{{ partial "footer/esbuild" (dict "src" "js/app.js" "targetPath" "main.js" "load" "async" "transpile" false) -}}

{{/* EXAMPLE - only load script for production
{{ if eq (hugo.Environment) "production" -}}
  {{ partial "footer/esbuild" (dict "src" "js/instantpage.js" "load" "async" "transpile" false) -}}
{{ end -}}
*/}}

{{/* EXAMPLE - only load script for a page type e.g. contact or gallery
{{ if eq .Type "gallery" }}
  {{ partial "footer/esbuild" (dict "src" "js/gallery.js" "load" "async" "transpile" false) -}}
{{ end }}
*/}}
