From aaaaf93fe62efe1e6329781e103712d5831c1263 Mon Sep 17 00:00:00 2001 From: mueh Date: Wed, 6 May 2026 09:28:06 +0200 Subject: [PATCH] =?UTF-8?q?js=20mit=20minimalconfig=20f=C3=BCr=20korrekten?= =?UTF-8?q?=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/src/forum/index.js | 8 ++++---- js/webpack.config.js | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/js/src/forum/index.js b/js/src/forum/index.js index 0750318..908a00b 100644 --- a/js/src/forum/index.js +++ b/js/src/forum/index.js @@ -1,5 +1,5 @@ -import addTeamsSettings from './addTeamsSettings'; +import app from 'flarum/forum/app'; -export default function () { - addTeamsSettings(); -} \ No newline at end of file +app.initializers.add('sbp-jm-msteams-webhook-forum-test', () => { + console.log('[sbp-jm-msteams-webhook] forum bundle loaded'); +}); diff --git a/js/webpack.config.js b/js/webpack.config.js index fcfa77c..c60f30b 100644 --- a/js/webpack.config.js +++ b/js/webpack.config.js @@ -1,3 +1,5 @@ const config = require('flarum-webpack-config'); -module.exports = config(); +module.exports = config({ + useExtensions: ['js'], +}); \ No newline at end of file