Can component's css files into page's css file? #86
Replies: 2 comments 3 replies
-
Hi @mybardaklar, This is not possible, sorry, because Pug is a templating engine and pug-loader is just a Webpack loader, not a framework like Astro. But, in next release |
Beta Was this translation helpful? Give feedback.
-
Hello @mybardaklar, I have released the new version The next What's New:
|
Beta Was this translation helpful? Give feedback.
-
Hello @webdiscus,
I couldnt be sure what title i'll choose for this question. So forgive me :)
Probably you know Astro.js. I saw this system there. For example:
I have index.page.pug and about.page.pug files. And i also have button.component.pug and img.component.pug. If i import button.component.pug in index.page.pug, this component's styles codes should be index.page.css.
This import can be with tag or inline style. I dont know. I'll attach the link for you.
The link: https://docs.astro.build/en/guides/styling
Is it possible? If it is, i'll be really happy. Because i am sick of importing component's style files into page's style files.
That'll be cool feature.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions