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

chore: Clean up Nextjs-example with postcss-plugin #784

Merged
merged 3 commits into from
Nov 27, 2024
Merged

Conversation

nmn
Copy link
Contributor

@nmn nmn commented Nov 26, 2024

Chore: Just makes some small tweaks to the Next.js example to simplify the setup now that we have the postcss-plugin.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 26, 2024
Copy link

github-actions bot commented Nov 26, 2024

workflow: benchmarks/size

Comparison of minified (terser) and compressed (brotli) size results, measured in bytes. Smaller is better.

@stylexjs/[email protected] size:compare
./size-compare.js /tmp/tmp.PbMUJq4j1k /tmp/tmp.0BRYHCz4Sr

Results Base Patch Ratio
stylex/lib/stylex.js
· compressed 729 729 1.00
· minified 2,541 2,541 1.00
stylex/lib/StyleXSheet.js
· compressed 1,266 1,266 1.00
· minified 3,776 3,776 1.00
rollup-example/.build/bundle.js
· compressed 563,025 563,025 1.00
· minified 10,185,368 10,185,368 1.00
rollup-example/.build/stylex.css
· compressed 99,154 99,154 1.00
· minified 745,649 745,649 1.00

@nmn nmn merged commit 307a6d5 into main Nov 27, 2024
8 checks passed
*/

/**
* The @stylex directive is used by the @stylexjs/postcss-plugin.
Copy link
Contributor

Choose a reason for hiding this comment

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

You should have kept this comment when moving the directive, otherwise it's not going to be clear what it means to people just browsing the nextjs code example

@nmn nmn deleted the fix/nextjs-example branch November 27, 2024 22:30
aminaopio pushed a commit to aminaopio/stylex that referenced this pull request Dec 22, 2024
* chore: Clean up Nextjs-example with postcss-plugin
* chore: remove unnecessary 'bright' dep
* chore: add json-scheme types
aminaopio pushed a commit to aminaopio/stylex that referenced this pull request Dec 22, 2024
* chore: Clean up Nextjs-example with postcss-plugin
* chore: remove unnecessary 'bright' dep
* chore: add json-scheme types
aminaopio pushed a commit to aminaopio/stylex that referenced this pull request Dec 22, 2024
* chore: Clean up Nextjs-example with postcss-plugin
* chore: remove unnecessary 'bright' dep
* chore: add json-scheme types
aminaopio pushed a commit to aminaopio/stylex that referenced this pull request Dec 22, 2024
* chore: Clean up Nextjs-example with postcss-plugin
* chore: remove unnecessary 'bright' dep
* chore: add json-scheme types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants