-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add Remix integration page (#1281)
Co-authored-by: Remus Mate <3297808+mrm007@users.noreply.github.com>
- Loading branch information
1 parent
837774c
commit 49d60bd
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
title: Remix | ||
parent: integrations | ||
--- | ||
|
||
# Remix | ||
|
||
[Remix](https://remix.run) provides support for Vanilla Extract out of the box. See [Vanilla Extract | Remix](https://remix.run/docs/en/main/styling/vanilla-extract) for details. | ||
|
||
Remix's (unstable) Vite compiler works with the [Vite integration]. It's as simple as adding the `@vanilla-extract/vite-plugin` to your Vite config: | ||
|
||
```js | ||
import { unstable_vitePlugin as remix } from '@remix-run/dev'; | ||
import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin'; | ||
import { defineConfig } from 'vite'; | ||
|
||
export default defineConfig({ | ||
plugins: [remix(), vanillaExtractPlugin()] | ||
}); | ||
``` | ||
|
||
See [Vite (Unstable) | Remix](https://remix.run/docs/en/main/future/vite#add-vanilla-extract-plugin) for more details. | ||
|
||
[vite integration]: /documentation/integrations/vite |