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

Ndelangen/remove css usage #9003

Merged
merged 8 commits into from
Dec 10, 2019
Merged

Ndelangen/remove css usage #9003

merged 8 commits into from
Dec 10, 2019

Conversation

ndelangen
Copy link
Member

Issue: these styled.div`` string stay in the bundle as is, they cannot be minified, increasing the size of the bundle, especially in production mode.

What I did

I migrated them to use object notation

@vercel
Copy link

vercel bot commented Nov 29, 2019

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/storybook/monorepo/vq640ga9x
🌍 Preview: https://monorepo-git-ndelangen-remove-css-usage.storybook.now.sh

@ndelangen ndelangen added the maintenance User-facing maintenance tasks label Nov 29, 2019
@vercel vercel bot temporarily deployed to staging November 29, 2019 01:24 Inactive
@ndelangen
Copy link
Member Author

I did this be cause I was investigating the inclusion of all css of all languages of syntax-highlighter.

Though I wasn't able to reproduce #8972 I did see huge blobs of string in our bundle.

I figured it would save some bundle-size, because these blobs of string contained all sorts of comments that cannot be removed, but now they can.

Packtracker seems to agree this is an improvement, though smaller than I had hoped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance User-facing maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant