1
0
postdoc/app/javascript/controllers/index.js

10 lines
396 B
JavaScript
Raw Permalink Normal View History

2020-12-06 20:49:03 +01:00
// 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))