mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 17:36:23 +00:00
9 lines
396 B
JavaScript
9 lines
396 B
JavaScript
// Load all the controllers within this directory and all subdirectories.
|
|
// Controller files must be named *_controller.js.
|
|
|
|
import { Application } from "stimulus"
|
|
import { definitionsFromContext } from "stimulus/webpack-helpers"
|
|
|
|
const application = Application.start()
|
|
const context = require.context("controllers", true, /_controller\.js$/)
|
|
application.load(definitionsFromContext(context))
|