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

Css @import is not top level #36

Open
mecirmartin opened this issue Aug 25, 2021 · 0 comments
Open

Css @import is not top level #36

mecirmartin opened this issue Aug 25, 2021 · 0 comments

Comments

@mecirmartin
Copy link

mecirmartin commented Aug 25, 2021

Hi, i'm using your plugin to process css and i'm using single @import statement which loads google fonts (i want to have one single .css file in bundle).
However this @import statement is not on the top level of bundled index.css and because of this, it won't load fonts on the website.
I'm importing the style sheet index.css with @import right inside /src/index.ts which is also entry point for the bundler, so according to my logic this .css file should be processed first.

Is there any config that i'm unaware of? Or how could i achieve using @import statement and generating valid bundle with your plugin?

Thanks

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

1 participant