Files
wxt/docs/entrypoints/css.md
T
2024-02-23 11:45:58 -06:00

1.3 KiB

CSS

WXT can build CSS entrypoints individually. CSS entrypoints are always unlisted.

See Content Script CSS documentation for the recommended 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 {
    /* ...*/
  }
}