Skip to content

fix: updated pre-processors.md to warn about global imports #1710

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix: updated pre-processors.md to warn about global imports #1710

wants to merge 1 commit into from

Conversation

3drenders
Copy link

prependData and it's predecessor data both include all variables and files. In previous projects, we've run accros bundle sizes for CSS files that saw a 20x decrease when these variables / files were cleaned up, limiting the repeated shared CSS. Without carefull use, this will result in specific CSS being included in all the individual components. This simple addition to the docs might warn some people and prevent their project size from increasing unnecessarily.

prependData and it's predecessor ``` data ``` both include all variables and files. In previous projects, we've run accros bundle sizes for CSS files that saw a 20x decrease when these variables / files were cleaned up, limiting the repeated shared CSS. Without carefull use, this will result in specific CSS being included in all the individual components. This simple addition to the docs might warn some people and prevent their project size from increasing unnecessarily.
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

Successfully merging this pull request may close these issues.

1 participant