Skip to content

Commit

Permalink
docs: update about CSS default exports
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Aug 19, 2023
1 parent ded43c9 commit 7ca3597
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guide/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export default defineConfig({

## CSS

Importing `.css` files will inject its content to the page via a `<style>` tag with HMR support. You can also retrieve the processed CSS as a string as the module's default export.
Importing `.css` files will inject its content to the page via a `<style>` tag with HMR support.

### `@import` Inlining and Rebasing

Expand Down Expand Up @@ -253,7 +253,7 @@ import otherStyles from './bar.css?inline' // will not be injected
```

::: tip NOTE
Default and named imports from CSS files (e.g `import style from './foo.css'`) are deprecated since Vite 4. Use the `?inline` query instead.
Default and named imports from CSS files (e.g `import style from './foo.css'`) are removed since Vite 5. Use the `?inline` query instead.
:::

### Lightning CSS
Expand Down

0 comments on commit 7ca3597

Please sign in to comment.