mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 11:36:21 +00:00
activar stimulus
This commit is contained in:
parent
b5be8299d9
commit
2d46c68904
4 changed files with 10 additions and 7 deletions
9
app/javascript/controllers/index.js
Normal file
9
app/javascript/controllers/index.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
// 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))
|
|
@ -17,13 +17,7 @@
|
|||
|
||||
import 'core-js/stable'
|
||||
import 'regenerator-runtime/runtime'
|
||||
|
||||
import { Application } from 'stimulus'
|
||||
import { definitionsFromContext } from "stimulus/webpack-helpers"
|
||||
|
||||
const application = Application.start()
|
||||
const context = require.context("./controllers", true, /\.js$/)
|
||||
application.load(definitionsFromContext(context))
|
||||
import 'controllers'
|
||||
|
||||
import {EditorState} from "prosemirror-state"
|
||||
import {EditorView} from "prosemirror-view"
|
||||
|
|
Loading…
Reference in a new issue