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

Let Expo/Webpack handle CSS assets #3942

Merged
merged 6 commits into from
Sep 23, 2024

Conversation

mary-ext
Copy link
Contributor

@mary-ext mary-ext commented May 10, 2024

Stacked on #3929, see #3929 (comment)

Manually sharing CSS code between web/index.html (dev builds) and bskyweb/templates/base.html (production) is brittle, let's have it handled as a built asset instead.

This also means hot-reloading on development, well, hopefully it should.

Small savings gained from minification (reduction of ~2kb uncompressed)

Comment on lines 256 to 415
</style>
</style>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never even noticed the double closing tag until now 😅

src/App.web.tsx Show resolved Hide resolved
@haileyok haileyok self-assigned this Sep 2, 2024
@mary-ext mary-ext mentioned this pull request Sep 17, 2024
5 tasks
@gaearon gaearon force-pushed the feat/css-assets branch 2 times, most recently from 79f425d to 3f1501c Compare September 23, 2024 13:54
Copy link
Collaborator

@gaearon gaearon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome, thanks

@gaearon gaearon merged commit 4e8d86d into bluesky-social:main Sep 23, 2024
10 of 12 checks passed
@mary-ext mary-ext deleted the feat/css-assets branch September 23, 2024 14:51
estrattonbailey added a commit that referenced this pull request Sep 23, 2024
* origin/main:
  changed white (gray_0) text to offwhite (gray_25) (#5453)
  Let Expo/Webpack handle CSS assets (#3942)
estrattonbailey added a commit that referenced this pull request Sep 23, 2024
* origin/main:
  [Neue] Handle emoji within custom font (#5449)
  Use pressable for video controls (#5452)
  Resolve source files for fonts, remove hack (#5454)
  changed white (gray_0) text to offwhite (gray_25) (#5453)
  Let Expo/Webpack handle CSS assets (#3942)
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.

4 participants