1.2 KiB
1.2 KiB
CSS
WXT can build CSS entrypoints individually. CSS entrypoints are always unlisted.
See Content Script CSS documentation for the recomended approach to include CSS with a content script.
:::info
If the recommended approach doesn't work for your use case, you can use any of the filename patterns below to build the styles separate from the JS and use the transformManifest hook to manually add your CSS file to the manifest.
:::
Filenames
Definition
body {
/* Plain CSS file */
}
Follow Vite's guide to setup a preprocessor: https://vitejs.dev/guide/features.html#css-pre-processors
pnpm i sass
body {
h1 {
/* ...*/
}
}