Correções para funcionamento do Docker
This commit is contained in:
5
app/javascript/controllers/application.js
Normal file
5
app/javascript/controllers/application.js
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Application } from "@hotwired/stimulus"
|
||||
const application = Application.start()
|
||||
application.debug = false
|
||||
window.Stimulus = application
|
||||
export { application }
|
||||
3
app/javascript/controllers/index.js
Normal file
3
app/javascript/controllers/index.js
Normal file
@@ -0,0 +1,3 @@
|
||||
import { application } from "controllers/application"
|
||||
import { eagerLoadControllersFrom } from "@hotwired/stimulus-loading"
|
||||
eagerLoadControllersFrom("controllers", application)
|
||||
Reference in New Issue
Block a user