group stimulus scripts in an asset subfolder
This commit is contained in:
@@ -9,4 +9,4 @@
|
||||
import './styles/app.css';
|
||||
|
||||
// start the Stimulus application
|
||||
import './bootstrap';
|
||||
import './stimulus/bootstrap';
|
||||
|
@@ -11,6 +11,6 @@ import { Controller } from '@hotwired/stimulus';
|
||||
*/
|
||||
export default class extends Controller {
|
||||
connect() {
|
||||
this.element.textContent = 'Hello Stimulus! Edit me in assets/controllers/hello_controller.js';
|
||||
this.element.textContent = 'Hello Stimulus! Edit me in assets/stimulus/controllers/hello_controller.js';
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user