hotwired/stimulus-rails

rails stimulus:manifest:update replacing our index.js configs

laptopmutia opened this issue · 1 comments

from the read me it told us too add this

// Eager load all controllers defined in the import map under controllers/**/*_controller
import { eagerLoadControllersFrom } from "@hotwired/stimulus-loading"
eagerLoadControllersFrom("controllers", application)

the problem is whenever we use rails stimulus:manifest:update the settings is removed

I not need to use the rails stimulus:manifest:update

because this code already loading all the controllers

import { eagerLoadControllersFrom } from "@hotwired/stimulus-loading"
eagerLoadControllersFrom("controllers", application)