Skip to content

Commit 5d33b5f

Browse files
authored
Add setup docs for snowpack-plugin (#162)
1 parent e41529e commit 5d33b5f

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ Want to work at a higher level while maximising style re-use? Check out 🍨 [S
8888
- [webpack](#webpack)
8989
- [esbuild](#esbuild)
9090
- [Vite](#vite)
91+
- [Snowpack](#snowpack)
9192
- [Gatsby](#gatsby)
9293
- [Styling API](#styling-api)
9394
- [style](#style)
@@ -221,6 +222,25 @@ export default {
221222

222223
> Please note: There are currently no automatic readable class names during development. However, you can still manually provide a debug ID as the last argument to functions that generate scoped styles, e.g. `export const className = style({ ... }, 'className');`
223224
225+
## Snowpack
226+
227+
1/ Install the dependencies.
228+
229+
```bash
230+
$ npm install @vanilla-extract/css @vanilla-extract/snowpack-plugin
231+
```
232+
233+
2/ Add the [Snowpack](https://www.snowpack.dev/) plugin to your snowpack config.
234+
235+
```js
236+
// snowpack.config.json
237+
{
238+
"plugins": ["@vanilla-extract/snowpack-plugin"]
239+
}
240+
```
241+
242+
> Please note: There are currently no automatic readable class names during development. However, you can still manually provide a debug ID as the last argument to functions that generate scoped styles, e.g. `export const className = style({ ... }, 'className');`
243+
224244
### Gatsby
225245

226246
To add to your [Gatsby](https://www.gatsbyjs.com) site, use the [gatsby-plugin-vanilla-extract](https://github.com/KyleAMathews/gatsby-plugin-vanilla-extract) plugin.

site/docs/setup.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,25 @@ export default {
117117

118118
> Please note: There are currently no automatic readable class names during development. However, you can still manually provide a debug ID as the last argument to functions that generate scoped styles, e.g. `export const className = style({ ... }, 'className');`
119119
120+
## Snowpack
121+
122+
1/ Install the dependencies.
123+
124+
```bash
125+
$ npm install @vanilla-extract/css @vanilla-extract/snowpack-plugin
126+
```
127+
128+
2/ Add the [Snowpack](https://www.snowpack.dev/) plugin to your snowpack config.
129+
130+
```js
131+
// snowpack.config.json
132+
{
133+
"plugins": ["@vanilla-extract/snowpack-plugin"]
134+
}
135+
```
136+
137+
> Please note: There are currently no automatic readable class names during development. However, you can still manually provide a debug ID as the last argument to functions that generate scoped styles, e.g. `export const className = style({ ... }, 'className');`
138+
120139
## Gatsby
121140

122141
To add to your [Gatsby](https://www.gatsbyjs.com) site, use the [gatsby-plugin-vanilla-extract](https://github.com/KyleAMathews/gatsby-plugin-vanilla-extract) plugin.

0 commit comments

Comments
 (0)