Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using SASS causes binary size to increase significantly #134

Open
A1Liu opened this issue Apr 10, 2023 · 0 comments
Open

Using SASS causes binary size to increase significantly #134

A1Liu opened this issue Apr 10, 2023 · 0 comments

Comments

@A1Liu
Copy link
Collaborator

A1Liu commented Apr 10, 2023

Importing SASS files is done by importing the SASS compiler via URL; unfortunately, this results in the SASS compiler being fully bundled into the final output of the app. I think this was probably the cause of the ~12MB bundle for the PoGo app, and also why the compiler took so long to run.

Removing all the SASS from the PoGo app on my personal repository resulted in the bundle dropping from 12mb to 385kb, and compile times dropping from 700ms to 53ms.

@A1Liu A1Liu changed the title Using SASS causes binary size to bloat significantly Using SASS causes binary size to increase significantly Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant