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.
15 lines
575 B
15 lines
575 B
3 years ago
|
import { Application } from "@hotwired/stimulus"
|
||
|
|
||
|
const application = Application.start()
|
||
|
|
||
|
// Configure Stimulus development experience
|
||
|
application.warnings = true
|
||
|
application.debug = false
|
||
|
window.Stimulus = application
|
||
|
|
||
|
// Import and register all your controllers within this directory and all subdirectories
|
||
|
// Controller files must be named *_controller.js or *_controller.ts
|
||
|
import { definitionsFromContext } from "@hotwired/stimulus"
|
||
|
const context = require.context("controllers", true, /_controller\.(js|ts)$/)
|
||
|
application.load(definitionsFromContext(context))
|