Skip to content

Commit 5b8e70d

Browse files
committed
docs(next-config): add experimental inline css docs
1 parent 09b3944 commit 5b8e70d

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

  • docs/01-app/03-api-reference/05-config/01-next-config-js
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: inlineCss
3+
description: Enable inline CSS support.
4+
version: experimental
5+
---
6+
7+
Experimental support for inlining CSS in the `<head>`. When this flag is enabled, all places where we normally generate a `<link>` tag will instead have a generated `<style>` tag.
8+
9+
```ts filename="next.config.ts" switcher
10+
import type { NextConfig } from 'next'
11+
12+
const nextConfig: NextConfig = {
13+
experimental: {
14+
inlineCss: true,
15+
},
16+
}
17+
18+
export default nextConfig
19+
```
20+
21+
```js filename="next.config.js" switcher
22+
/** @type {import('next').NextConfig} */
23+
const nextConfig = {
24+
experimental: {
25+
inlineCss: true,
26+
},
27+
}
28+
29+
module.exports = nextConfig
30+
```

0 commit comments

Comments
 (0)