5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 20:26:22 +00:00
panel/app/javascript/controllers/index.js

10 lines
416 B
JavaScript
Raw Normal View History

2020-11-19 23:38:33 +00:00
// Load all the controllers within this directory and all subdirectories.
// Controller files must be named *_controller.js.
2024-07-20 18:21:03 +00:00
import { Application } from "@hotwired/stimulus"
import { definitionsFromContext } from "@hotwired/stimulus-webpack-helpers"
2020-11-19 23:38:33 +00:00
const application = Application.start()
const context = require.context("controllers", true, /_controller\.js$/)
application.load(definitionsFromContext(context))