Hello, I'm building an integration for astro for my css library.
I want to include the style file to every page:
export default function LinwoodStyleIntegration(): AstroIntegration {
return {
name: "linwood-style-astro",
hooks: {
"astro:config:setup": async ({ config, updateConfig, injectScript }) => {
injectScript(
"page-ssr",
`import "linwood-style-astro/base.css";`
);
},
},
};
}
The base.css file looks like this:
@import url("linwood-style-web/css/linwood_style.css");
If I build the demo project, the whole linwood_style.css will be included as inline css. How can I disable this?