Erudika / scoold

A Stack Overflow clone for teams (self-hosted or hosted)
https://scoold.com
Apache License 2.0
862 stars 239 forks source link

Beginner Question : How can I split scoold.js into module files? #372

Closed ja-ho closed 1 year ago

ja-ho commented 1 year ago

Hi! I am trying to split scoold.js into multiple files. Is there any specific reason the javascript code is all in one file? If it is possible to split the code, I would like to ask how. Is the module bundler applied to scoold? If not, can I build it by adding a module bundler? Thanks so much!

albogdano commented 1 year ago

Splitting the main JS file would give you a negligible performance increase and I don't see a point in doing it. Scoold does not use any module bundler whatsoever. It's just plain old jQuery. Complicating the build process is strongly discouraged.