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

Unused CSS getting bundled #223

Open
samithaf opened this issue Oct 30, 2023 · 0 comments
Open

Unused CSS getting bundled #223

samithaf opened this issue Oct 30, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@samithaf
Copy link
Collaborator

samithaf commented Oct 30, 2023

Steps to reproduce

  • Create a new Next.js App using npx create-next-app@latest
  • Install @westpac/ui
  • Import Button component in anywhere in the project
  • Build the project
  • Inspect the build folder

Could be related to

Also we may need to exclude stories files getting scan since current documented matcher will scan stories too. Another possible option is exclude stories file getting added to node_module.

'./node_modules/@westpac/ui/src/**/*.{js,ts,jsx,tsx,mdx}'

@samithaf samithaf converted this from a draft issue Oct 30, 2023
@samithaf samithaf added the bug Something isn't working label Oct 30, 2023
@jaortiz jaortiz assigned jaortiz and unassigned jaortiz Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

2 participants