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

sass or other css preprocessor support #104

Open
DanavsSite opened this issue May 15, 2023 · 1 comment
Open

sass or other css preprocessor support #104

DanavsSite opened this issue May 15, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@DanavsSite
Copy link

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

Describe the solution you'd like
i think it'd if we can just import them like 'import "./hello.css"'

@DanavsSite DanavsSite added the enhancement New feature or request label May 15, 2023
@UpperCod
Copy link
Member

Hi @DanavsSite, I find the functionality you mentioned interesting. I believe we should include it in the @atomico/vite package. I have an idea for a syntax like this:

import style from ./style.css?atomico’;

function component(){...}

component.styles = style;

Option 2 involves automatic association, but it requires AST analysis of the code:

import ./style.css?atomico’;

function component(){...}

This implies more advanced processing that can automatically determine the relationship between the CSS file and the component, without the need to manually assign the styles variable as in option 1.

Good idea, I'll see if I can work on it

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

No branches or pull requests

2 participants