Better webpack config
							parent
							
								
									957ac0f133
								
							
						
					
					
						commit
						f0b01f1974
					
				| @ -1,6 +0,0 @@ | |||||||
| import { Application } from "stimulus"; |  | ||||||
| import { definitionsFromContext } from "stimulus/webpack-helpers"; |  | ||||||
| 
 |  | ||||||
| const application = Application.start(); |  | ||||||
| const context = require.context("./controllers", true, /\.[jt]s$/); |  | ||||||
| application.load(definitionsFromContext(context)); |  | ||||||
| @ -0,0 +1,8 @@ | |||||||
|  | import * as Turbo from "@hotwired/turbo"; | ||||||
|  | import { Application } from "stimulus"; | ||||||
|  | import TaskController from "./controllers/task_controller"; | ||||||
|  | 
 | ||||||
|  | export { Turbo }; | ||||||
|  | 
 | ||||||
|  | const application = Application.start(); | ||||||
|  | application.register("task", TaskController); | ||||||
					Loading…
					
					
				
		Reference in New Issue