diff options
author | hellekin <hellekin@cepheide.org> | 2020-10-23 18:41:22 +0200 |
---|---|---|
committer | hellekin <hellekin@cepheide.org> | 2020-10-23 18:41:22 +0200 |
commit | f9d0f6c6d771dbf57843bdc6034b2a20dddb128a (patch) | |
tree | 6cac53679a5d0307a856a2aa3771299e4a60f2d0 /app/javascript/controllers/index.js | |
parent | 8970b8532c8d40786c3c00f9b77a5e74dfa53a2f (diff) | |
download | incommon-map-f9d0f6c6d771dbf57843bdc6034b2a20dddb128a.tar.gz |
Add stimulus.js
Diffstat (limited to 'app/javascript/controllers/index.js')
-rw-r--r-- | app/javascript/controllers/index.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/javascript/controllers/index.js b/app/javascript/controllers/index.js new file mode 100644 index 0000000..6f53d84 --- /dev/null +++ b/app/javascript/controllers/index.js @@ -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)) |