Daniel Lima

Joined

1,210 Experience
12 Lessons Completed
0 Questions Solved

Activity

Posted in Stimulus JS Framework Introduction Discussion

import { Application } from  'stimulus'
import { definitionsFromContext } from 'stimulus/webpack-helpers'

const application = Application.start()
const controllers = require.context('./controllers', true, /\.js$/)

application.load(definitionsFromContext(controllers))