GooseMod / OpenAsar

Open-source alternative of Discord desktop's app.asar
https://openasar.dev
GNU Affero General Public License v3.0
2.54k stars 67 forks source link

Resolve CSS imports in window bootstrap stage #158

Closed MatthewCash closed 1 year ago

MatthewCash commented 1 year ago

OpenAsar's CSS imports are processed by the browser, which has a few limitations:

This adds a new function to recursively resolve CSS imports from NodeJS using fs.readFile and the http(s) modules, removing the previous limitations.

CanadaHonk commented 1 year ago

Thanks, but I would prefer to keep the code intentionally simple and not have this logic.

MatthewCash commented 1 year ago

Fair enough