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

No css files support #24

Open
ohkimur opened this issue Sep 26, 2022 · 2 comments
Open

No css files support #24

ohkimur opened this issue Sep 26, 2022 · 2 comments

Comments

@ohkimur
Copy link
Contributor

ohkimur commented Sep 26, 2022

It would be cool if by default the components without any reference to a CSS file guarantee the usage of the TW. At the moment it seems that if there aren't components with CSS files associated, the TW classes fail. I guess this happens because the TW utility classes are not included by default or something like that (more research might be necessary). However, when there is at least one component that has a reference to a CSS file, other components seem to not require the CSS file.

@Poimen
Copy link
Owner

Poimen commented Sep 30, 2022

Just so I can understand what you are asking ...

Normally you would have:

@Component({
    shadow: true,
    styleUrl: 'my-component.css',
    tag: 'my-component',
})

where my-component is the component and my-component.css is the associated stylings.

Is the idea to be able to support:

@Component({
    shadow: true,
    tag: 'my-component',
})

Then the TW styles would be injected into the my-component output from the compiler?

@ohkimur
Copy link
Contributor Author

ohkimur commented Oct 1, 2022

@Poimen Yes. Exactly.

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

No branches or pull requests

2 participants