mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-18 14:16:00 +01:00
Move entrypoint to app/javascript/
This commit is contained in:
parent
20e01d3a3f
commit
ce067a2d57
1 changed files with 1 additions and 6 deletions
|
@ -1,6 +1,3 @@
|
|||
import { Application } from '@hotwired/stimulus';
|
||||
import { definitionsFromContext } from '@hotwired/stimulus-webpack-helpers';
|
||||
|
||||
import start from 'retrospring/common';
|
||||
import initAnswerbox from 'retrospring/features/answerbox/index';
|
||||
import initCapabilities from 'retrospring/features/capabilities';
|
||||
|
@ -31,6 +28,4 @@ document.addEventListener('turbo:load', initFront);
|
|||
document.addEventListener('DOMContentLoaded', initWebpush);
|
||||
document.addEventListener('turbo:load', initWebpushSettingsButtons);
|
||||
|
||||
window['Stimulus'] = Application.start();
|
||||
const context = require.context('../retrospring/controllers', true, /\.ts$/);
|
||||
window['Stimulus'].load(definitionsFromContext(context));
|
||||
|
Loading…
Reference in a new issue