HabitRPG / habitica-chat-extension

A habitica.com Chat Client for Chrome
18 stars 13 forks source link

Use the same code base for multiple browsers #68

Closed juanj closed 3 years ago

juanj commented 4 years ago

Right now the add-on uses two copies of the same code to support multiple browser (Chrome and Firefox). This feels really ineficient. Double the work for each feature/bug fix.

There must be a better way to handle this. I don't have much experience building browser add-ons but this is worth investigating. Maybe share the same core JavaScript files and use different sets of Manifest/Platform dependent files when "compiling" the extension.

This may also open the door to support more browsers easily.

cTheDragons commented 3 years ago

We looked in using Browserfy. However for those of coding on a non-Linux platform, (ie windows) we were unable to get it working.