madara update (#1405)

* madara customJS

* update for boxnovel
This commit is contained in:
K1ngfish3r
2025-01-05 15:31:27 +05:00
committed by GitHub
parent f78d887686
commit 2c7420e049
5 changed files with 53 additions and 41 deletions
+4 -1
View File
@@ -27,7 +27,10 @@ const generator = function generator(source) {
});
const pluginScript = `
${madaraTemplate}
${madaraTemplate.replace(
'// CustomJS HERE',
source.options?.customJs || '',
)}
const plugin = new MadaraPlugin(${JSON.stringify(source)});
export default plugin;
`.trim();