You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
584 B
12 lines
584 B
// Import and register all your controllers from the importmap under controllers/*
|
|
|
|
import { application } from "controllers/application"
|
|
|
|
// Eager load all controllers defined in the import map under controllers/**/*_controller
|
|
import { eagerLoadControllersFrom } from "@hotwired/stimulus-loading"
|
|
eagerLoadControllersFrom("controllers", application)
|
|
|
|
// Lazy load controllers as they appear in the DOM (remember not to preload controllers in import map!)
|
|
// import { lazyLoadControllersFrom } from "@hotwired/stimulus-loading"
|
|
// lazyLoadControllersFrom("controllers", application)
|