jodit
jodit copied to clipboard
Remove the unused plugins from the final file
Hello,
Jodit is very good, but it is rather large (around 600ko).
Is there a way to load a special build of Jodit without its plugins, and load them independently (like custom plugins) ? Alternatively, maybe there is a way to tap into webpack tree-shaking capabilities to remove unused code ?
The goal here would be to reduce the size of the final file.
Thank you for your time !
@lionel-bijaoui Yes, I thought about it. Jodit supports loading external plugins, I need to fix the webpack config so that each plugin is bundled into its own folder. But now I don't have time for that. If anyone can help with this, I would be grateful. Plus, it is probably necessary that all language files are also kept separately. Jodit also supports downloading them.
Alternatively, in the first solution now it would be possible to make a separate file in which to write a list of files that webpack should not include in the assembly. I think the webpack has a similar feature.
Not directly related but now #621 is merged there's a build output with just the English language included, which will help with the bundle size issue.
Though of course further work to have an even more minimal build output would be beneficial.