Skip to content

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

@ryandwalker

Description

@ryandwalker

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions