generated from boboko/starter
23 lines
806 B
JavaScript
23 lines
806 B
JavaScript
import "./bootstrap";
|
|
import "./utils/strip-accents";
|
|
import "./utils/refresh-scroll";
|
|
|
|
// Frames only — no site-wide Turbo Drive. <turbo-frame> navigations still work
|
|
// (that's how the category listing reloads); every other link and form on the
|
|
// site keeps its normal full-page browser behaviour.
|
|
import "@hotwired/turbo";
|
|
window.Turbo.session.drive = false;
|
|
|
|
import { Application } from "@hotwired/stimulus";
|
|
import { registerControllers } from "./stimulus/index";
|
|
import { registerCheckout } from "./checkout";
|
|
|
|
const application = Application.start();
|
|
application.debug = false;
|
|
|
|
registerControllers(application);
|
|
|
|
// Portable cart + checkout module (destined for boboko-core). Owns its own
|
|
// bbk-* Stimulus controllers; this is the only wiring line it needs here.
|
|
registerCheckout(application);
|