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

USWDS-Compile - Feature: How can I create separate component directories? #82

Open
2 tasks done
ryandwalker opened this issue Nov 24, 2023 · 1 comment
Open
2 tasks done
Labels
Needs: Discussion Role: Dev Development/engineering skills needed Type: Feature Request New functionality

Comments

@ryandwalker
Copy link

ryandwalker commented Nov 24, 2023

Is your feature request related to a problem? Please describe.

The problem is that all my CSS is loaded for all pages, including pages where the CSS isn't relevant. Currently in my gulpfile.js, I have these paths:

uswds.paths.dist.css = './css';
uswds.paths.dist.theme = './sass';

This works as expected. But now I want to create subdirectories for components, like /sass/component/my-component/my-component.scss.

Describe the solution you'd like

I want to create subdirectories for components, like /sass/component/my-component/my-component.scss

Note: I do not want my-component.scss automatically compiled into my /css/style.scss. Instead, I want it to compile somewhere like /css/my-component/my-component.css. That way my application can load my-component.css only where it is relevant.

Describe alternatives you've considered

No response

Additional context

I'm not sure if I'm looking for a support in the right place. I don't know if my issue is a more general gulp question -- and I should get support somewhere like stackoverflow.com -- or if my issue is specific to uswds-compile.

Code of Conduct

@ryandwalker ryandwalker added the Type: Feature Request New functionality label Nov 24, 2023
@github-actions github-actions bot added the Status: Triage We're triaging this issue and grooming if necessary label Nov 24, 2023
@brunerae brunerae added Needs: Discussion Role: Dev Development/engineering skills needed and removed Status: Triage We're triaging this issue and grooming if necessary labels Dec 7, 2023
@brunerae brunerae added this to the 2024.01 January milestone Dec 7, 2023
@brunerae brunerae removed this from the 2024.01 January milestone May 13, 2024
@ryandwalker
Copy link
Author

Can someone comment on whether USWDS-compile supports the distribution of CSS among different component directories? I suspect it is possible to do this with USWDS-compile, but I'm not sure.

It's also possible that USWDS-compile does not prevent the developer from distributing the compiled CSS among components, but also does not particularly support it. That is, maybe there is some trick to doing what I want, despite the USWDS-compile itself not explicitly supporting single-directory components.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Discussion Role: Dev Development/engineering skills needed Type: Feature Request New functionality
Projects
Status: No status
Development

No branches or pull requests

2 participants